terminal_wait
Wait for a terminal to display expected output or a permission prompt, then return a found, permission_needed, or timeout status.
Instructions
Wait for a terminal to show specific output. Polls every second up to the timeout.
Also watches for permission prompts ("Do you want to proceed") and returns immediately with a "permission_needed" status so the conductor can approve without wasting the timeout.
Returns JSON-like status: "found" (pattern matched), "permission_needed" (prompt detected), or "timeout" (neither matched in time).
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": {
"name": "<name>",
"pattern": "<pattern>"
},
"name": "terminal_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Terminal name to watch | |
| pattern | Yes | Text pattern to wait for (substring match, case-insensitive) | |
| timeout | No | Max seconds to wait (default: 30, max: 120) | |
| interrupt_on | No | Additional patterns that trigger early return (default: permission prompts). Case-insensitive. |