# `AshAi.Tool.Execution`
[🔗](https://github.com/ash-project/ash_ai/blob/v1.1.0/lib/ash_ai/tool/execution.ex#L5)

Executes Ash actions from tool call arguments.

# `run`

Executes a tool with the given arguments and context.

Returns:
- `{:ok, result, raw_result}` for successful tool calls
- `{:error, error_text}` for execution failures

Set `:encode?` to `false` to return the serialized result before JSON encoding.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
