---
title: "Preview tool execution"
method: POST
path: "/api/tools/{tool_id}/preview"
tags: ["tools", "tools"]
---

# Preview tool execution

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

## 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}/preview`
- Auth: none declared

Preview what a tool will do without executing it.

Returns a preview card and guard check results.

## Path parameters

- `tool_id` string, required

## Request body

- ToolPreviewRequest: Request for previewing tool execution.
  - `tool_id` string, required: ID of the tool to preview
  - `params` object: Tool parameters
  - `mode` 'draft' | 'auto' | 'supervised' | 'autonomous' | 'background_draft' | 'post_approval' | 'sandbox' | 'voice': Execution modes for the AI agent.
  - `thread_id` string, nullable: Thread/channel ID for context

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