serial_wait_for
Wait for a regex match in serial output without sending data. Use it to detect expected prompts, login prompts, or log lines while observing a device.
Instructions
Wait for a regex in serial output without sending. Use when you know the text to expect (a prompt, login:, a log line). Works for observers. Ends early on a critical anomaly ([ABORTED anomaly:...]). Open-ended listening: serial_monitor. Output that already arrived: serial_output_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex to match in device output (listen-only; no TX). | |
| timeout_ms | No | Max wait in ms (default 30000, clamp 100–3600000). |