Tools

tool_poll

tool_poll is a built-in tool that retrieves the status and result of an async tool execution. Agents call it after dispatching an async tool to check whether the background job has completed.

Parameters

typescript
// tool_poll parameters
{
  taskId: string  // UUID returned by the async tool call
}

Response shape

typescript
{
  taskId: string
  status: 'running' | 'done' | 'error'
  toolName: string
  result?: unknown      // present when status === 'done'
  errorMessage?: string // present when status === 'error'
  createdAt: string
  updatedAt: string
}

Typical agent pattern

  1. Agent calls heavy_analysis({ dataset: "q4-sales" }) and receives { taskId: "abc-123", status: "running" }
  2. Agent continues with other work
  3. Agent calls tool_poll({ taskId: "abc-123" }) and receives { status: "done", result: {...} }

tool_poll is automatically available to all agents — no allow-list entry required. There is no built-in polling loop; the agent decides when to call tool_poll based on its own reasoning. For time-sensitive workflows, instruct the agent in its system prompt to poll after completing other tasks.