encode_base64
Convert text to Base64 encoding or decode Base64 back to text. Use for safe data transport in JSON, URLs, or email.
Instructions
Encode or decode text using Base64.
Use this when you need to encode binary data for text-safe transport
(e.g., in JSON, URLs, or email) or decode previously encoded Base64 data.
Parameters:
text — The string to encode or decode (required).
mode — Operation: "encode" (text → Base64) or "decode" (Base64 → text)
(default: "encode").
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_base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| mode | No | encode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |