wait_any_completion
Long-poll for any new completion since a cursor. Returns immediately if any are available; otherwise waits up to the specified max wait seconds. Avoids polling each job individually.
Instructions
Long-poll up to max_wait_seconds for any new completion since
the cursor. Returns immediately if any are already available;
otherwise waits.
Default 50s is below the MCP transport ceiling so you can re-enter
in a loop. Useful when watching schedule ticks land without
polling each tick's job_id separately.
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_any_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| max_wait_seconds | No |