tool_image_to_base64
Convert image files to Base64 strings or data URIs. Accepts base64-encoded file payloads and returns both formats for easy embedding.
Instructions
[image] Image to Base64
Parameters:
file (bytes): File
outputFormat (string): Output
Outputs:
base64 (string): Base64
dataUri (string): Data URI
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tool_image_to_base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File (base64 file payload) | |
| base64 | No | Base64 | |
| dataUri | No | Data URI | |
| outputFormat | No | Output |