create_serial_session
Open a serial port session by specifying a device path and optional baud rate, with configurable logging and rotation for session output.
Instructions
Open a serial port session. Device path must start with /dev/tty or /dev/cu. (e.g. /dev/ttyUSB0, /dev/cu.usbserial-XXXX)
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": {
"device": "<device>"
},
"name": "create_serial_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Serial device path (must start with /dev/tty or /dev/cu.) | |
| log_file | No | File path to append all session output. File is created if it doesn't exist. | |
| baud_rate | No | Baud rate (default: 9600) | |
| log_max_size | No | Max log file size in MB before rotation (0 = no rotation, default: 0) | |
| log_max_files | No | Max number of rotated log files to keep (default: 3) |