oc_serial_open
Open a raw, persistent serial/UART session on a permitted device and capture a JSONL transcript under hardware/serial/<session_id>.jsonl.
Instructions
Open a raw, persistent serial/UART session on a device passed into the container. Captures a transcript under hardware/serial/<session_id>.jsonl. Device must be a character device under /dev/ttyUSB*, /dev/ttyACM*, /dev/ttyS*, /dev/serial/, /dev/rfcomm*, or /dev/lirc*.
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": {
"engagement_id": "<engagement_id>",
"device": "<device>"
},
"name": "oc_serial_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| parity | No | none | |
| baudrate | No | ||
| bytesize | No | ||
| stopbits | No | ||
| engagement_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||