> ## 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.

# Add Tool • AI Agent SDK

> add_tool: Register a tool. Simplified alias for register_tool().

# add\_tool

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**registry**](../modules/registry) module.

Register a tool. Simplified alias for register\_tool().

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    agent["Agent"] -- "uses" --> tool["Tool: add_tool"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_tool(tool: Union[BaseTool, Callable], name: Optional[str], trust_level: Optional[str], dynamic_schema_overrides: Optional[Callable[[Dict[str, Any]], Dict[str, Any]]]) -> None
```

## Parameters

<ParamField query="tool" type="Union[BaseTool, Callable]" required={true}>
  BaseTool instance or callable function
</ParamField>

<ParamField query="name" type="Optional[str]" required={false}>
  Optional override name
</ParamField>

<ParamField query="trust_level" type="Optional[str]" required={false}>
  Optional trust level for the tool ("trusted" or "external")
</ParamField>

<ParamField query="dynamic_schema_overrides" type="Optional" required={false}>
  Optional function to dynamically modify tool schema
</ParamField>

## Uses

* `register_tool`

## Used By

* [`PermissionAllowlist.load`](../functions/PermissionAllowlist-load)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/registry.py#L592">
  `praisonaiagents/tools/registry.py` at line 592
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tools Concept" icon="wrench" href="/docs/docs/concepts/tools" />

  <Card title="Create Custom Tools" icon="plus" href="/docs/docs/guides/tools/create-custom-tools" />

  <Card title="Tool Development" icon="code" href="/docs/docs/tutorials/advanced-tool-development" />
</CardGroup>
