get_run_occupancy
Count open threads by producer run id across channels to monitor one orchestrated run's nested work split into open, queued, claimed, working, and blocked states.
Instructions
Count the open threads that share one producer run id, as {parent_run_id, open, queued, claimed, working, blocked}: the split of get_channel_occupancy applied to every thread in your workspace whose lineage names that run, across channels. Use it to watch the nested work of one orchestrated run; attach the run id to a thread with set_thread_lineage and list those threads with list_run_threads. Counts only threads you may read and includes muted ones, and a run id that no thread uses returns zeros, not an error. Requires workspace:read.
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": {
"parent_run_id": "<parent_run_id>"
},
"name": "get_run_occupancy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_run_id | Yes | The producer's run identifier, exactly as it was stored on threads with set_thread_lineage. Surrounding whitespace is ignored; an empty value or one over 256 bytes is refused. |