terminal.wait_for_text
Pause execution until terminal output matches specified text or regex pattern, enabling conditional automation in command-line interactions.
Instructions
Wait until terminal screen contains text, or matches text as a regex when regex=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID from terminal.start — use exact value | |
| text | Yes | Text to wait for; treated as regex pattern when regex=true | |
| regex | No | Treat text as a regular expression | |
| timeoutMs | No | Timeout in milliseconds, default 10000 | |
| caseSensitive | No | Case-sensitive match, default true |