wait_agents
Block until specified agents stop running or request permission, with a timeout up to 50 seconds. Use this instead of repeated polling to coordinate parallel agent sessions.
Instructions
Block up to timeout_seconds (max 50) until any or all agents stop running or ask for a permission. Prefer this over repeated polling.
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": {
"ids": "<ids>"
},
"name": "wait_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| mode | No | ||
| timeout_seconds | No |