Parse ASN.1
parse_asn1Parse ASN.1 encoded data in DER, BER, PEM, HEX, or base64 format and get a structured JSON tree output.
Instructions
Parse ASN.1 DER, BER, PEM, HEX, or base64 text and return a JSON tree.
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": {
"data": "<data>"
},
"name": "parse_asn1"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ASN.1 input as PEM, HEX, base64, DER base64, or text. | |
| format | No | Input format. Use auto to detect PEM, HEX, base64, DER, or BER. | auto |
| maxDepth | No | Maximum child depth to include. | |
| includeRawValue | No | Include raw primitive value hex. | |
| includeHexPreview | No | Include compact hex previews for primitive values. | |
| hexPreviewLength | No | Maximum hex preview length. |