decode_protocol
Decode saved logic-analyzer captures using single-layer or stacked protocol decoders, map protocol roles to channels, and return bounded structured events instead of raw waveforms.
Instructions
Decode a saved capture with bundled single-layer or stacked protocol decoders. Protocols: can, cjtag, i2c, i2s, ir_nec, jtag, jtag_ejtag, jtag_stm32, lin, mdio, modbus, onewire_link, onewire_network, ps2, qspi, sdcard_sd, sdcard_spi, spdif, spi, spiflash, swd, usb_signalling. Map protocol roles explicitly, for example channels={scl:D0,sda:D1}. Inspect capabilities for each protocol's required/optional channels and typed options. Returns bounded structured events, never raw waveform arrays.
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": {
"capture_id": "<capture_id>",
"protocol": "<protocol>",
"channels": "<channels>"
},
"name": "decode_protocol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Typed decoder options. Use decoder.option when stacked layers share a name, for example spi.cpol=0. See capabilities. | |
| start_s | No | ||
| channels | Yes | Protocol role to capture channel, e.g. {"scl":"D0","sda":"D1"} | |
| protocol | Yes | ||
| capture_id | Yes | ||
| duration_s | No | ||
| max_events | No | ||
| include_bits | No | ||
| include_lower_layers | No | Include lower-layer annotations for stacked protocols. |