set_frame_filter
Restricts this CAN session's receive filter to an inclusive arbitration-ID range, replacing any previous filter so receive, monitor, and scenario waits see only matching IDs.
Instructions
Replace this session's RX filter with one inclusive arbitration-ID range.
Requires an open session. Replaces the previous filter; it does not add a
second range and does not transmit. To receive every ID again, call
accept_all_frames. receive_frame, monitor, and scenario waits then see only
IDs from start_id through end_id. Success data is
{start_id, end_id, is_extended, mode: "mask"}. A bus without set_filters
returns CAPABILITY_UNSUPPORTED.
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>",
"start_id": "<start_id>",
"end_id": "<end_id>"
},
"name": "set_frame_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device alias from config / list_devices | |
| end_id | Yes | Inclusive end of accepted arbitration ID range | |
| start_id | Yes | Inclusive start of accepted arbitration ID range | |
| is_extended | No | Match extended (29-bit) IDs when true; default false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |