close_device
Closes an open CAN device session by stopping periodic TX and monitoring, then shuts the bus; the alias stays in config for later reopening.
Instructions
Close one open session: stop periodic TX and monitor, then shut the bus.
Success data is {state: "closed"} and the alias stays in config for a later
open_device. Does not send frames and does not delete the device entry.
If a periodic task fails to stop, the session stays in error and is kept
so you can retry; it is not removed. Closing an alias that is not open
returns SESSION_NOT_FOUND.
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": "close_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device alias from config / list_devices |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |