Base64 encode
base64_encodeEncode text to Base64. The text is converted to UTF-8 bytes first, so any language and emoji work. Set url_safe for the URL- and filename-safe alphabet (- and _ instead of + and /, as in JWTs and URLs), padding=false to drop the trailing '=' characters, and wrap to break the output into lines (76 for MIME email). Returns only the Base64 string.
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_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to encode, taken as UTF-8. | |
| wrap | No | Insert a line break after every N output characters. 0 = one line, 76 = MIME. | |
| padding | No | Add '=' padding at the end. | |
| url_safe | No | Use the URL-safe alphabet (- and _, RFC 4648 section 5). |