save_base64_as_image
Convert a base64 encoded string into an image file. Specify the base64 data and output path to save the image.
Instructions
Save a base64 encoded image to a file.
Args: base64_data: Base64 encoded image data (with or without data URI prefix) output_path: Path for output image file
Returns: Output path or error message
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_data": "<base64_data>",
"output_path": "<output_path>"
},
"name": "save_base64_as_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64_data | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |