serial_wait_for
Waits for a regex pattern in incoming serial output, then optionally sends a response; configure timeout, encoding, and max output bytes to monitor device communication.
Instructions
Wait for a regex in incoming output, optionally responding on match.
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 | ||
| respond | No | ||
| timeout | No | ||
| encoding | No | utf-8 | |
| session_id | No | ||
| respond_hex | No | ||
| max_output_bytes | No |