wait_for_state
Poll gates and screen until a target boot/run phase appears; returns the phase or last observed state on timeout.
Instructions
Wait (bounded) until the screen reaches a boot/run phase (read-only).
Server-side twin of CLI watch: polls cheap power/signal/boot-progress
gates, then server-side vision, until phase (a classify_screen token;
unknown tokens fail fast with the valid list) is observed. timeout is
seconds, capped server-side at 300 — chain calls for longer waits. Success
returns phase/confidence plus a frame_ref to pass to mouse as
observed_frame_ref; a timeout returns reached=false with the last
observed state (never a hang, never a raised error). With no server-side
vision credentials only cheap-gate phases are waitable; others fail fast
pointing at classify_screen polling. Holds the driver open up to
timeout s. Details: doctrine topic 'interfaces'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| phase | Yes | ||
| profile | No | ||
| timeout | No |