util_cbor
CBOR decode / encode (RFC 8949) — Decode CBOR to JSON plus diagnostic notation, or encode JSON to deterministic CBOR. Decode: data= hex/base64/base64url (sequence=true for CBOR sequences, RFC 8742); all major types incl. indefinite lengths, half/single/double floats, simple values and tags (epoch time to ISO, bignums to decimal strings, UUID, embedded CBOR, COSE names); byte strings become {$bytes:hex}. Reports deterministic-encoding problems (non-shortest heads, unsorted or duplicate map keys, indefinite lengths, oversized floats), tags used and depth. Recognizes COSE keys (kty/alg/crv with x/y/n/e as base64url) and WebAuthn attestationObjects (fmt, rpIdHash, flags UP/UV/BE/BS/AT/ED, signCount, AAGUID, credential id and public key). Encode: mode=encode&json= (use {$bytes:hex} and {$tag:n,value:v}) returns hex/base64/base64url in RFC 8949 core deterministic form. Max 200,000 bytes; errors return 422 with an offset. Price: $0.002 USDC (Base, via x402).
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": "util_cbor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | a26161016162820203 |