serial_open
Opens a serial port and initiates continuous background capture of incoming lines into a ring buffer and daily log, providing persistent data for debugging. Call before other operations.
Instructions
Open a serial port with a background reader that continuously captures all incoming lines into a ring buffer and a daily log file. Call this first.
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": {
"port": "<port>"
},
"name": "serial_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Serial port name, e.g. COM5 or /dev/ttyUSB0 | |
| parity | No | Parity (default none) | |
| timeout | No | Operation timeout in ms (default 200) | |
| baudrate | No | Baud rate (default 115200) | |
| bytesize | No | Data bits: 5/6/7/8 (default 8) | |
| encoding | No | Text decoding (default utf-8) | |
| stopbits | No | Stop bits (default 1) |