tandem_wait
Waits for any selected task to finish or ask a question, returning ready IDs or questions so you can act on the first ready result instead of polling each task.
Instructions
Wait for ANY selected task to finish or ask a question, not for each in turn.
Like tandem_result, this defaults to a long bounded wait: the first task to finish or ask returns it. Pass wait_seconds=0 to peek at which tasks are already ready, and wait_mode="auto" when you have complementary work.
wait_seconds: 0..1200, served in full by the server; a client may stop holding the call in the foreground first; if it says it moved the request to a background task, read that result. wait_mode works as in tandem_result: "auto" also returns once event delivery covers every pending task, "bounded" waits for one of them to become ready. Returns ready IDs/questions, not full answers. Read ready terminal results with tandem_result and remove them from later wait sets; reply directly to a returned question. Does not acknowledge terminal events or rerun work. Await events only with a live independent watchdog.
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": {
"task_ids": "<task_ids>"
},
"name": "tandem_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_ids | Yes | ||
| wait_mode | No | bounded | |
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||