Encode or decode Base64
base64_codecEncode UTF-8 text as Base64, or decode Base64 and data URIs. URL-safe output uses - and _ and omits padding. Decode reports the sniffed media type and whether the bytes are UTF-8 text.
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": "base64_codec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | text/plain;charset=utf-8 | |
| text | Yes | Text to encode, or Base64 or a data URI to decode. | |
| action | No | encode | |
| dataUri | No | ||
| urlSafe | No | Encode with the URL-safe alphabet and no padding. Data URIs stay on the standard alphabet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| mime | Yes | ||
| error | Yes | ||
| binary | Yes | ||
| output | Yes | ||
| filename | Yes |