> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# activate • AI Agent SDK

> activate: Activate a skill and return its rendered body.

# activate

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillActivationProtocol**](../classes/SkillActivationProtocol) class in the [**activation**](../modules/activation) module.

Activate a skill and return its rendered body.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def activate(name: str, arguments: str, session_id: Optional[str]) -> str
```

## Parameters

<ParamField query="name" type="str" required={true}>
  Name of the skill to activate
</ParamField>

<ParamField query="arguments" type="str" required={false} default="''">
  Arguments to substitute in the skill body
</ParamField>

<ParamField query="session_id" type="Optional[str]" required={false}>
  Optional session identifier for context
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Rendered skill body with arguments substituted
</ResponseField>

### Exceptions

<AccordionGroup>
  <Accordion title="ValueError">
    If skill is not found or not user-invocable
  </Accordion>
</AccordionGroup>

## Used By

* [`SkillLoader.load`](../functions/SkillLoader-load)
* [`SkillManager.activate`](../functions/SkillManager-activate)
* [`SkillManager.activate_by_name`](../functions/SkillManager-activate_by_name)
* [`SkillManager.invoke`](../functions/SkillManager-invoke)
* [`SkillManager.get_instructions`](../functions/SkillManager-get_instructions)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/activation.py#L15">
  `praisonaiagents/skills/activation.py` at line 15
</Card>
