agy_wait_agent
Wait for spawned subagents to finish and retrieve completed results, streaming each as it completes or waiting for the full batch.
Instructions
Wait for one or more Antigravity subagents to finish (mirrors native Codex wait). Pass wait_for='any' to stream results as each agent finishes, or 'all' to wait for the full batch. Returns completed results, conversation_id, changed_files, scope_violations, branch, and still_running.
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": {
"agent_ids": "<agent_ids>"
},
"name": "agy_wait_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_for | No | Return as soon as 'any' agent completes or wait until 'all' complete. | any |
| agent_ids | Yes | List of agent_id values returned by agy_spawn_agent. | |
| timeout_sec | No | Maximum seconds to wait in this call (default 180, max 840). |