wait_for_task
Poll an existing SolveHub task until it completes, fails, is cancelled, or times out, returning the task and a timedOut flag when the polling budget expires.
Instructions
Poll one existing task until it is done, failed or cancelled, or until timeout_seconds pass. Returns the task in either case, with timedOut true when the budget ran out.
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": {
"task_id": "<task_id>"
},
"name": "wait_for_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task id to poll. | |
| timeout_seconds | No | Polling budget in seconds. Default 120, maximum 600. |