> ## 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 Yaml Approved Tools • AI Agent SDK

> add_yaml_approved_tools: API reference for add_yaml_approved_tools

# add\_yaml\_approved\_tools

Function

> This function is defined in the [**approval**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/approval.md) module.

```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_yaml_approved_tools"]
    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_yaml_approved_tools(tools: List[str]) -> contextvars.Token
```

## Parameters

**tools** `List[str]` *required*

No description available.

### Returns

**Returns** `contextvars.Token`

The result of the operation.

## Uses

* `add_yaml_approved_tools`
* `get_approval_registry`

## Used By

* [`add_yaml_approved_tools`](../functions/add_yaml_approved_tools)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/approval/__init__.py#L125)
>
> `praisonaiagents/approval/__init__.py` at line 125

***

## Related Documentation

> [card] [Tools Concept](https://praison.ai/docs/docs/concepts/tools)

> [card] [Create Custom Tools](https://praison.ai/docs/docs/guides/tools/create-custom-tools)

> [card] [Tool Development](https://praison.ai/docs/docs/tutorials/advanced-tool-development)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.