See what the workers are doing
poll_workersTrack parallel worker status: get a compact table of all workers, then use a cursor to receive only new transitions and next steps, clean safe worktrees, and recover dead runs. Call in a loop.
Instructions
The main thread's read. Without cursor: a compact table of every worker and a next_cursor. With that cursor: only what happened since, as transitions (finished, failed, needs attention) with the next step; quiet when nothing did. A poll with a cursor also recovers a dead first run once and removes safe worktrees (listed under cleaned). Call it from a loop.
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": "poll_workers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows in the full table, newest last | |
| cursor | No | next_cursor from the previous poll | |
| status | No | Filter the full table |