Wait for a ZCode task
zcode_waitBlocks until a subagent task finishes or timeout elapses, then returns its status and result text; if still running, call again instead of tight polling.
Instructions
Block until the task finishes or timeoutSec elapses (default 45, max 55 so it stays under typical 60s tool-call timeouts), then return its status; when finished the result text is included. If it returns status 'running', just call zcode_wait again. Prefer this over tight polling.
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": {
"taskId": "<taskId>"
},
"name": "zcode_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| timeoutSec | No |