wait_for_task
Block until a ready task is available for the given assignee. Wakes within ~250ms when a task becomes claimable. Use instead of polling ready_tasks.
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": {
"assignee": "<assignee>"
},
"name": "wait_for_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assignee | Yes | Agent identifier to wait for work on | |
| timeout_ms | No | Max wait in milliseconds (default 30000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | Ready tasks for the assignee; empty if timed out | |
| timed_out | No | True when no task arrived within timeout_ms | |
| waited_ms | Yes | Milliseconds elapsed before returning |