nbt-decode
Decode Java Edition NBT bytes from base64, gzip, or uncompressed input into a typed JSON document with node types and values for inspection and downstream processing.
Instructions
Decode Java Edition NBT bytes (base64, gzip or uncompressed) into a typed JSON document {rootName, root}, where every node is {type, value} and long values are decimal strings. Example: {"nbtBase64":"CgABUgMABmFuc3dlcgAAACoA"}
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": {
"nbtBase64": "<nbtBase64>"
},
"name": "nbt-decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nbtBase64 | Yes | Java Edition NBT bytes as base64; whitespace is ignored. | |
| compression | No | auto: gunzip when the bytes start with the gzip header. | auto |