Number base converter
hopi_number_base_converterConvert a whole number from one base to another between binary, octal, decimal and hexadecimal. Uses BigInt so values of any size convert exactly. Returns the value in the requested base plus all four bases. Source: https://hopi.co.uk/number-base-converter/
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": {
"value": "<value>",
"fromBase": "<fromBase>",
"toBase": "<toBase>"
},
"name": "hopi_number_base_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The number to convert, as text (optional 0b/0o/0x prefix, spaces and underscores ignored, may be negative) | |
| toBase | Yes | The base to convert to | |
| fromBase | Yes | The base the value is written in |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | ||
| octal | Yes | ||
| value | Yes | ||
| binary | Yes | ||
| result | Yes | ||
| toBase | Yes | ||
| decimal | Yes | ||
| summary | Yes | ||
| fromBase | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |