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

# Execute Tool Async • AI Agent SDK

> execute_tool_async: Async version of execute_tool

# execute\_tool\_async

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

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

Async version of execute\_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: execute_tool_async"]
    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"}}
async def execute_tool_async(function_name: str, arguments: Dict[str, Any]) -> Any
```

## Parameters

<ParamField query="function_name" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="arguments" type="Dict" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `logging.info`
* `is_approval_required`
* `is_env_auto_approve`
* `is_yaml_approved`
* `logging.debug`
* `mark_approved`
* `request_approval`
* `logging.warning`
* `callable`
* `logging.error`

## Source

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

***

## Related Documentation

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

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

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

  <Card title="Async Feature" icon="clock" href="/docs/features/async" />

  <Card title="Background Tasks" icon="spinner" href="/docs/features/background-tasks" />
</CardGroup>
