Wait for any of several subagent invocations
wait_anyWait up to five minutes for any of several agent invocations to finish or report a blocker, returning ready results while the others keep running.
Instructions
Wait up to five minutes for the first of several invocations to finish or report a blocker.
reason=ready returns every listed invocation that is finished or has an unread blocker, in wait_agent's shape; the others keep running and are not in updates. Only the blockers returned are consumed; a later wait still returns the rest. Finished invocations stay ready on every call, so drop them from the next list. reason=wait_elapsed returns a running snapshot of each and consumes nothing. Empty, repeated, unknown or expired IDs reject the whole call before waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invocation_ids | Yes | Distinct invocation IDs returned by start_agent; all must be known. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| updates | Yes |