Generate a message
generateCreates a message: create = minimal (only mandatory fields), random (typical) or full (every field), then the APL commands set what the request asks (use describe's pathAlias and recipes). Returns JSON: {message, ref, autoDetected, to, data (the message in to), apl (rich APL of what the commands touched or show asked)}. The result is valid: no validate needed.
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": {
"ref": "<ref>",
"create": "<create>",
"to": "<to>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output format: UPER, WER, JER (JSON) or XER (XML) | |
| apl | No | Optional. 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 | Yes | 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) | |
| 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 | |
| create | Yes | minimal (the usual base for apl), random or full | |
| 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 |