wait_for
Blocks execution until an agent reaches a specified state (ready, done, error) with retroactive checking and timeout control.
Instructions
Block until an agent reaches a target state (ready, done, error). Checks retroactively first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent ID from spawn_agent | |
| target_state | Yes | State to wait for | |
| timeout_ms | No | Timeout in milliseconds (default: 5 minutes) |