open_device
Opens a CAN session for a device alias and keeps the bus active for send, receive, monitor, filter, and periodic frame operations; reuses an existing session instead of reopening.
Instructions
Open a CAN session for one alias and keep the bus in this process.
Required before send_frame, receive_frame, monitor, filters, and periodic_*.
If the session is already open, returns data.reused=true and does not reopen.
If state is error, returns DEVICE_NOT_OPEN; close_device and retry. Success
data is {state: "open", reused: bool}. Real adapters need a host SDK; a
virtual config opens without USB. Does not send or receive frames.
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": "open_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device alias from config / list_devices |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |