Wait for tasks
wait_for_tasksWait in bounded slices until delegated tasks settle, then return each task's status, outcome and PR URL. Use it only when your next step depends on a task's result.
Instructions
Wait until ad-hoc tasks settle and return each one's status and structured result (outcome, prUrl, verification caveats, error), like devintern worker wait --json. Only wait when the next step needs the outcome. timeoutSeconds is required and capped at 600; tasks usually take much longer than one call, so wait in bounded slices. On timeout the call still succeeds with timedOut: true and the current states. mode "any" returns as soon as one task settles. A worker that is not running fails the wait for pending tasks quickly instead of timing 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": {
"taskKeys": "<taskKeys>",
"timeoutSeconds": "<timeoutSeconds>"
},
"name": "wait_for_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | all | |
| taskKeys | Yes | Ad-hoc task keys (`local-…`) returned by delegate_task or list_my_tasks | |
| timeoutSeconds | Yes | Seconds to wait; capped at 600 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | No | ||
| message | No | ||
| timedOut | No | ||
| errorCode | No | Set on failure: stable error code | |
| nextSteps | No | Set on failure: steps to run next (`command` runs on the worker host) | |
| timeoutSeconds | No |