agy_run_wait
Wait for one or more agent runs to reach a chosen condition—attention, terminal, completion, or any event—using event-driven monitoring instead of polling. Specify run IDs and an optional timeout.
Instructions
Wait for sparse Run events instead of repeatedly polling status.
run_ids is always a list, even for one Run. Supported condition values: any_attention, any_terminal, all_terminal, any_event, plus aliases attention, terminal, finished, finish, complete, completed, result, all_finished, all_complete, and all_completed.
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": {
"run_ids": "<run_ids>"
},
"name": "agy_run_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| run_ids | Yes | ||
| condition | No | any_attention | |
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||