Encode or decode Base64 text
base64_convert_textEncode text to Base64 or decode Base64 and data URIs back to UTF-8 text. Use it for deterministic text conversions in chat, not for files on disk.
Instructions
Encode pasted text to Base64, or decode Base64 (or a data URI) back to text.
Use this when you have text or a Base64 string in the conversation. It is plain code, not an AI model, so the same input always gives the same output and nothing is made up. Do not use it for a file on disk (use convert_file for files), and do not use auto on short or unusual strings if you already know the direction — pass encode or decode instead.
Returns a result object. Encoded results include "action", "base64", "bytesIn", and "dataUri" plus "mime" when data_uri is true. Decoded results include "action", "bytesOut", "isText", and "text" (UTF-8 text, or null if the bytes are not 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_convert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to encode, or the Base64 (or data URI) to decode. | |
| action | No | What to do. "auto" (default) decodes if the input looks like Base64, otherwise it encodes. Use "encode" or "decode" when you already know the direction. | auto |
| data_uri | No | If true, encoded results also include a data: URI. | |
| url_safe | No | If true, encode with - and _ instead of + and /. Decoding always accepts both. |