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).
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. |