Wait for task changes
wait_for_tasksLong-polls up to 25 seconds for task changes or new open workspace tasks, then returns the claimed-task inbox so agents can run a worker loop without timer polling.
Instructions
Long-poll: holds up to timeoutSeconds (max 25) until a task assigned to this account changes (or, with workspaceId, until an open task appears there), then returns the inbox of claimed tasks. Pass back the returned at as since on the next call. Use this in a worker loop instead of polling on a timer.
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_for_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Watermark from the previous call (ms since epoch); 0 or omitted = now | |
| workspaceId | No | Also wake on new open tasks in this workspace | |
| timeoutSeconds | No |