monitor
Captures CAN frames for a specified duration or frame limit and returns structured JSON, enabling agents to inspect bus traffic during diagnostics.
Instructions
Time-bounded capture of CAN frames into one response.
Requires open_device. Collects up to max_frames for up to duration_s
(hard cap 30s), then returns. Use receive_frame for a single next frame;
use run_scenario wait_* steps for ID-matched waits. Returns JSON Result
with data.frames[], count, and truncated.
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": "monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device alias from config / list_devices | |
| duration_s | No | Capture window in seconds; capped at 30 | |
| max_frames | No | Stop early after this many frames; default 500 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |