wait_ready
Waits for a regex marker or a quiet, stable screen, then snapshots the terminal so agents know when a program is ready to interact with.
Instructions
Wait for a regex marker OR for the screen to go quiet (stable), then
snapshot. Use marker="" to wait purely for stability.
Returns a snapshot plus reason: "MARKER" (the regex appeared), "STABLE"
(the screen went quiet), "TIMEOUT", or — only on a session started with
detect_child_exit — "EXITED" (the child died; the wait returned at once
rather than running to max_wait_ms). exited reports the same fact as a
boolean on every wait tool. Timeout is not an error: the call still returns
ok=true with the final screen snapshot. Screen lines are right-padded with
spaces — end-anchored markers never match; use unanchored markers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| marker | No | ||
| quiet_ms | No | ||
| max_wait_ms | No |