data_codec
Encode or decode strings between Base64, Hex, ASCII/UTF-8, and URL formats to prepare data for transport, storage, or system interoperability.
Instructions
Encodes and decodes data between Base64, Hex, ASCII/UTF-8 string, and URL formats. For several operations or chained steps in one call, use batch_calc.
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": {
"action": "<action>",
"input": "<input>"
},
"name": "data_codec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Input string to process | |
| action | Yes | Codec operation | |
| format | No | Format of input (for to_base64) or output (for from_base64) | text |
| urlSafe | No | Use URL-safe Base64 alphabet without padding |