Wait For Text
wait_for_textWaits for specific text patterns to appear in terminal output, enabling automation of prompts, loading states, and output monitoring.
Instructions
Wait until a regex pattern appears in the terminal buffer. Useful for waiting for prompts, loading states, or specific output.
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>",
"pattern": "<pattern>"
},
"name": "wait_for_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID | |
| pattern | Yes | Regex pattern to search for in the terminal text | |
| timeout | No | Timeout in milliseconds (default: 5000) |