Wait for Agent State
agent_waitWaits for a target agent or pane to reach idle, done, blocked, or a specified state, letting orchestration scripts pause until work settles before continuing.
Instructions
Block until an agent reaches idle, done, blocked (default), or one of the specified 'until' states.
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": {
"target": "<target>"
},
"name": "agent_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | Optional list of states to match; omit for settled states (idle, done, blocked). | |
| target | Yes | Unique live agent name or hosting pane ID. | |
| timeout_ms | No | Timeout in milliseconds (default 120000). |