Skip to main content
Invoke a tool synchronously (or enqueue a job for job-backed tools)

Authorizations

Authorization
string
header
required

Authorization: Bearer stefan_sk_... (API key — bills the API wallet) or stefan_oat_... (OAuth member token — bills your plan pool).

Headers

Idempotency-Key
string

Both API versions retain keys for 24 hours after acceptance and while the work remains active. Repeating the same request returns the original job_id or ask run_id, without new work or a second charge. Keys are scoped to your account and tool family; keep the same chat, project, session, and input. A changed request conflicts with a retained key. Once the window ends and the work finishes, reuse can start billed work. Use a new key for new work. Injected as the idempotency_key tool argument; ignored on other tools. 1-128 chars of A-Z a-z 0-9 _ . : -; invalid values are 400 invalid_idempotency_key.

Pattern: ^[A-Za-z0-9_.:-]{1,128}$

Path Parameters

toolName
string
required

Body

application/json
arguments
object

Tool arguments matching the tool's inputSchema.

chat
string

Optional chat pin (chat_...).

project
string

Optional project pin (proj_...).

Response

Synchronous tool result.

Synchronous tool result envelope.

object
string
Allowed value: "tool_result"
notices
object[]
request_id
string
tool
string
chat
string
project
string
is_error
boolean
content
object[]
structured_content
object | null
error
object | null

Structured failure classification; an object exactly when is_error is true, null otherwise.