# Run a tool in an external task

`POST /v1/tasks/{taskId}/tool-calls`

Queue a tool call for an external task you own. Use a tool name and input schema from listTaskTools. This runs the selected tool without an Adam agent or model loop; tools may provision compute, use connected accounts or credentials, and incur usage charges. Poll getToolCall for the outcome. An unknown outcome must not be retried with a new key because the operation may have taken effect.

Required OAuth scopes: `tasks:write` and `tools:execute`

## Parameters

- `Idempotency-Key` (header, string, required): Required unique key for this tool call. Reuse it with the same task, tool and input to retrieve the original call rather than execute it again.
- `taskId` (path, string (uuid), required)

## Request body

- `tool` (string, required)
- `input` (object, required)

## Responses

- `202`
  - `call` (object, required)
    - `id` (string (uuid), required)
    - `taskId` (string (uuid), required)
    - `tool` (string, required)
    - `status` ("queued" | "running" | "succeeded" | "failed" | "unknown", required)
    - `input` (object, required)
    - `output` (string | number | boolean | null | any[] | object | null, required)
    - `error` (object | null, required)
    - `createdAt` (string, required)
    - `startedAt` (string | null, required)
    - `finishedAt` (string | null, required)
- `400`: Invalid request
- `401`: Missing or invalid Bearer credential
- `402`: Payment or subscription required
- `403`: Credential is missing a required scope
- `404`: Resource not found
- `409`: Request conflict
- `429`: Rate limit exceeded
- `500`: Internal API error
