serial_command
Send text to a serial device and collect output until a regex matches, timeout occurs, or the line goes silent.
Instructions
Send text and collect output until a regex matches, timeout, or silence.
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": {
"data": "<data>"
},
"name": "serial_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| expect | No | ||
| respond | No | ||
| timeout | No | ||
| encoding | No | utf-8 | |
| session_id | No | ||
| respond_hex | No | ||
| append_newline | No | ||
| max_output_bytes | No |