send_frame
Transmit a single CAN frame on an open device session. Use it for one-off bus messages and call periodic_stop first if a hardware periodic task owns the TX path.
Instructions
Transmit one CAN frame on an open session.
Requires open_device first. Puts a single frame on the bus; for repeating
the same frame use periodic_start, for multi-step scripts use run_scenario.
Fails while a hardware periodic task owns the TX path — call periodic_stop
first. Returns JSON Result (error.code on failure).
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>",
"arbitration_id": "<arbitration_id>",
"data": "<data>"
},
"name": "send_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Hex payload, e.g. "01 02 03" or "010203" (classic CAN max 8 bytes) | |
| device | Yes | Device alias from config / list_devices | |
| is_extended | No | True for 29-bit extended ID; default false (11-bit) | |
| arbitration_id | Yes | CAN arbitration ID (integer, not hex string) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |