Modify a message
modifyChanges an existing message with APL commands and returns it in the same format (the rest stays as it was). Returns the same JSON as generate.
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>",
"apl": "<apl>"
},
"name": "modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apl | Yes | APL commands, one per item, applied in order: "<field>=<value>" (a pathAlias from describe, e.g. "speed=50 km/h", or an exact path, e.g. "cam.camParameters.basicContainer.stationType=passengerCar"), "<field> REMOVE". Physical values with their unit (latitude=41.3874 degree; a number without unit is the encoded integer); named values and bits by name (stationType=passengerCar, exteriorLights={lowBeamHeadlightsOn}). A path creates what it needs (optional parts, list items [n], the CHOICE alternative). Errors name every failing line at once, with the valid fields, values or units | |
| 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 |