wait_change
Block until the terminal screen changes after sending input, then snapshot the new state to confirm your action landed.
Instructions
Block until the screen content changes, then snapshot.
The precise "did my action land?" primitive: call it right after send_line/
send_keys to wait for ANY change from the baseline (default: the screen at
call time; or pass a prior hash to change away from). Returns {"ok",
"changed", "hash", "alive", "exited", "text", "json"} — hash is the new
screen hash, reusable as the next baseline. Timeout is not an error: the
call returns ok=true with changed=false plus the final screen snapshot.
exited is true only on a detect_child_exit session whose child died
first. Can't false-positive on text that was already on screen, unlike
wait_regex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| timeout_ms | No | ||
| baseline_hash | No |