Wait for tasks or rounds
waitBlocks for up to 270 seconds to collect ready task and round updates, returning as soon as any item is available; use zero seconds to check progress immediately.
Instructions
Receive all handles ready now in updates (tasks) and rounds; return when any is ready.
Inbox: omit ids, pass this chat's manager_session_id; increment seq for each call. Selected ids: continue with pending_ids; retaining finished ids rereads their results. all_finished means no unreceived ends remain in that scope, not that all succeeded. follow_up (inbox wait closing at all_finished): bad ends delivered by earlier waits and isolated dirs still unreleased, each listed once; handle before reporting.
ready: handle each item's reason first. prompt_pending requires answer_prompt, once per prompt, still running. execution_blocked is still running, once per category. review_needed requires decide_answers before waiting again. seat_lost reports a failed/blocked seat while peers run, once per seat, answers withheld; retry via run_round.retry_seats. wait_elapsed: status/activity only; wait again. nothing_pending: the inbox is empty. already_waiting: another blocking inbox wait is active; results return to that call (use wait_seconds=0 for progress).
wait_seconds=0 and include_output=false still receive ready items. Only 0 includes running tails (up to 1000 characters) and age, subject to include_output. Inbox ends and round answers arrive once; output_returned means use read_conversation. Unknown/expired/duplicate ids reject the whole call. Follow receipt next: the App may prompt an in-app boss when results are ready; otherwise wait before ending the turn.
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": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Distinct invocation_ids/round_ids; omit for this boss chat's inbox (requires explicit or host-injected chat identity). | |
| seq | No | Optional call sequence: start at 1 and increment on each wait so legitimate repeated waits have distinct arguments. Echoed in the reply; no deduplication, replay or ordering enforcement. | |
| wait_seconds | No | Omit to wait up to 270s. 0 checks progress immediately and includes running tails; ready results are still received; no value stops work. | |
| include_output | No | false omits bodies and tails but still receives ready results, including answers under review. | |
| manager_session_id | No | Boss chat identity for the inbox; required unless host-injected. Ignored with ids; see MCP identity instructions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | No | ||
| next | No | ||
| reason | Yes | ||
| rounds | Yes | ||
| updates | Yes | ||
| follow_up | No | ||
| pending_ids | Yes | ||
| all_finished | Yes | ||
| follow_up_omitted | No |