encode_decode
Convert text between encoding formats like base64, hex, URL, HTML, or ROT13. Choose encode or decode to transform your string, with byte counts and cost included in the output.
Instructions
Encode or decode a string using a common encoding scheme.
Supports: base64, base64url, hex, url (percent-encoding), html (entity encoding), rot13.
Args: text: The string to encode or decode codec: Encoding scheme — base64 | base64url | hex | url | html | rot13 operation: "encode" or "decode"
Returns: dict with keys: operation, codec, input, output, input_bytes, output_length (or error), cost_usd
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": {
"text": "<text>"
},
"name": "encode_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| codec | No | base64 | |
| operation | No | encode |