Extract ASN.1 Node
extract_asn1_nodeExtract a specific ASN.1 node and its subtree as DER bytes by providing the node ID from parse_asn1 output. Supports PEM, HEX, base64, DER, and BER inputs.
Instructions
Extract a parsed ASN.1 node and its subtree by node id as DER bytes.
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>",
"nodeId": "<nodeId>"
},
"name": "extract_asn1_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ASN.1 input as PEM, HEX, base64, DER base64, or text. | |
| nodeId | Yes | Node id from parse_asn1 output. | |
| format | No | Input format. Use auto to detect PEM, HEX, base64, DER, or BER. | auto |
| encoding | No | Output encoding for DER or value bytes. | hex |