Base64 encode or decode
base64Turn text into Base64, or Base64 back into text. URL-safe and data URIs work too.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | The media type to put in the data URI. Default text/plain;charset=utf-8. | |
| text | No | The text to encode, or the Base64 string to decode. | |
| action | No | What to do: "encode", "decode", or "auto" (the default, which guesses from the text). | |
| dataUri | No | Set to true to also return a data: URI when encoding. Default false. | |
| urlSafe | No | Set to true to use the URL-safe Base64 alphabet when encoding. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | Yes | ||
| result | Yes |