orca_wait
Block server-side until a worker finishes, fails, or needs human input, then return one structured event with status and last message; call in a loop to walk through events.
Instructions
Block server-side until a worker finishes or needs a human, then return one structured event (state done, failed, waiting or blocked, plus the worker and its last message). With a run (or a dispatch, or a run this server created) it waits on the Run's worker_done and escalation mail without taking it and, at the same time, on Orca's hook state (a worker parked on a prompt never mails); otherwise on hook state alone for one terminal, one worktree, or every worker this client started. Each event is returned once, so calling orca_wait in a loop walks through them. On state working the timeout passed: wait again.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "orca_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | ||
| dispatch | No | ||
| terminal | No | ||
| worktree | No | Absolute path | |
| timeoutMs | No |