wait_for_regex
Wait for a regex pattern to appear in terminal output, checking scrollback and live output within a configurable time limit.
Instructions
Wait for a regex match in rendered text and/or newly arriving PTY bytes.
Requires an existing session created via create_session(session_id, cwd).
This first checks already rendered scrollback, then waits on new PTY output.
deadline_s must be at most 300 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| deadline_s | No | Total wall-clock budget in seconds. Must be between 0 and 300. | |
| session_id | Yes |