Decode bits
decode_bitsDecode binary or hexadecimal bit patterns into a chosen numeric format and get the decimal value plus a full bit-level component breakdown.
Instructions
Decode a binary or hexadecimal bit-pattern into a specified format. Returns the decimal value and full component breakdown.
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": {
"bits": "<bits>",
"format": "<format>"
},
"name": "decode_bits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | Yes | Bit-pattern as a binary string (e.g. "0100000001001000") or hex string with 0x prefix (e.g. "0x4048"). | |
| format | Yes | Format preset key (e.g. "fp16") or custom format object. |