receive_frame
Reads the next CAN frame from an open device session, waiting up to a timeout and returning null when no frame arrives.
Instructions
Receive the next CAN frame from an open session (consumes one frame).
Requires open_device. Waits up to timeout seconds; on timeout returns
status=ok with frame=null (not an error). Prefer monitor to capture many
frames over a wall-clock window; prefer wait_id inside run_scenario when
matching a specific ID. Returns JSON Result.
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": "receive_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device alias from config / list_devices | |
| timeout | No | Seconds to wait for one frame; default 1.0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |