Base64 decode
base64_decodeDecode Base64 text, URL-safe variants, unpadded input, whitespace, or data URIs back to UTF-8; returns hex for non-UTF-8 bytes and reports invalid input with error position.
Instructions
Decode Base64 back to text. Accepts the standard and the URL-safe alphabet (even mixed), missing '=' padding, spaces and line breaks, and data URIs such as data:image/png;base64,... Returns the decoded UTF-8 text exactly. If the bytes are not valid UTF-8 (an image, compressed or encrypted data), says so and returns them as hex instead. Invalid input fails with the reason and the position of the offending character.
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": {
"data": "<data>"
},
"name": "base64_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64 text or a data: URI. |