Read a message
readReads what a message says, in rich APL (physical values with units, names): without show, an overview (its pathAlias values and its structure: containers present, CHOICE alternatives, list sizes); with show, those fields. Use it to answer questions about a message; to give the user the message in a format, use convert.
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": {
"payload": "<payload>",
"from": "<from>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The message: its type (CAM, DENM, CPM, MAPEM/MAP, SPATEM/SPAT, IVIM, SREM, SSEM, VAM) = its default version, or a message for a specific version (_Cam_v2, see list_message_versions). Optional: omitted, the payload's V2X header says which | |
| from | Yes | The payload's format: UPER, WER, JER or XER | |
| show | No | Optional: fields to get back in rich APL (pathAlias or paths), e.g. ["speed", "latitude"]; a container shows everything under it | |
| compat | No | Optional: 'asn1c' = encode/decode like asn1c-based stacks (Vanetza), which depart from X.691 in a few constraints (e.g. CPM container list, PathPredicted); 'standard' = X.691 (ObjSys, asn1tools). Default: standard | |
| comment | No | Optional: one short line saying what this call is for, in the user's language, e.g. 'Minimal CAM without the low-frequency container'. Shown next to the result; it does not change the operation | |
| payload | Yes | The message: UPER/WER as hex, JER (JSON) or XER (XML) as text | |
| diagnose | No | Optional: true = if the payload does not decode, also the bit-level breakdown of what was read (where it failed comes always) |