---
title: "Execute a tool"
method: POST
path: "/api/tools/{tool_id}/execute"
tags: ["tools", "tools"]
---

# Execute a tool

`POST /api/tools/{tool_id}/execute`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/tools/{tool_id}/execute`
- Auth: none declared

Execute a tool with the specified parameters.

May return an approval required response if the tool needs approval.

## Path parameters

- `tool_id` string, required

## Request body

- ToolExecuteRequest: Request for executing a tool.
  - `tool_id` string, required: ID of the tool to execute
  - `params` object: Tool parameters
  - `mode` 'draft' | 'auto' | 'supervised' | 'autonomous' | 'background_draft' | 'post_approval' | 'sandbox' | 'voice': Execution modes for the AI agent.
  - `skip_approval` boolean: Skip approval requirement (requires auto mode)
  - `session_id` string, nullable: Conversation session ID
  - `thread_id` string, nullable: Thread/channel ID for context
  - `metadata` object: Additional metadata

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
