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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"text": "<text>"
},
"name": "terminal.wait_for_text"
}
}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 |