wait_task
Blocks until an async task finishes or the timeout expires, optionally sending stdin and returning incremental stdout/stderr output by offset.
Instructions
Wait up to maxWaitSec (default 45s) for an async task to finish. Supports optional sendInput (stdin for shell tasks) and incremental stdoutOffset/stderrOffset.
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": "wait_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| pollMs | No | ||
| taskId | Yes | ||
| sendInput | No | ||
| maxWaitSec | No | ||
| stderrOffset | No | ||
| stdoutOffset | No |