Wait for a subagent invocation
wait_agentWait for an active agent invocation to return its final result or a running snapshot while it continues executing. Poll long-running tasks without stopping them.
Instructions
Wait briefly for one invocation and return either a running snapshot or its final result.
A running response leaves the invocation active; call wait_agent again later. Use cancel_agent only when the invocation should be stopped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invocation_id | Yes | Invocation ID returned by start_agent. | |
| wait_timeout_seconds | No | Maximum time to wait during this call, in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| result | No | ||
| snapshot | No | ||
| invocation_id | Yes |