wait_for_execution
Poll an execution until it reaches a terminal state or timeout. Returns early with waiting status if the execution pauses on a Wait node, enabling asynchronous workflow handling.
Instructions
Poll an execution until it reaches a terminal state (success/error/crashed/canceled) or the timeout expires. Returns early with waiting=true if the execution pauses on a Wait node. Closes the loop after run_webhook in queue mode, where execution happens asynchronously on workers. The timeout is best-effort: each poll request has its own HTTP timeout, so total wall time can slightly exceed timeoutSeconds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "wait_for_execution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Execution ID to wait for | |
| timeoutSeconds | No | Max time to wait | |
| pollSeconds | No | Interval between checks |