convert_base
Convert an integer from base 2-36 to another base and return it as a string. Use for binary, decimal, hexadecimal, and custom radix conversions.
Instructions
Convert an integer number from one base to another.
number is given as a string in from_base (2-36); the result is a
string in to_base (2-36). Example: ("ff", 16, 2) -> "11111111".
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": {
"number": "<number>",
"from_base": "<from_base>",
"to_base": "<to_base>"
},
"name": "convert_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | ||
| to_base | Yes | ||
| from_base | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |