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.
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": {
"pattern": "<pattern>"
},
"name": "serial_wait_for"
}
}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). |