Polling
Poll for the result of an async tool execution.
The simplest way to get the result of a tool execution is to poll GET /v1/tools/executions/{toolExecutionId} until the status is terminal.
Both SDKs ship a pollExecutedTool helper that does this for you:
TypeScript
Python
cURL
The helper polls every 1.5 seconds (configurable via pollIntervalMs / poll_interval_ms) and returns once a terminal status is reached. Under the hood it’s a simple loop:
TypeScript
Python
When to use polling: good for scripts, CLI tools, or any situation where you can block and wait. For production systems, consider using webhooks instead.