Decode Base64 To File
decode_base64_to_fileDecode a base64 string and write the resulting binary data to a file. Provide the encoded content and an absolute path to save the decoded file.
Instructions
Decode a base64 string and write it to a file.
This tool takes base64 encoded content and writes the decoded binary data to a file. Only absolute paths are allowed for security reasons.
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": {
"base64_content": "<base64_content>",
"file_path": "<file_path>"
},
"name": "decode_base64_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path where to save the decoded file | |
| base64_content | Yes | Base64 encoded content to decode and write to file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |