get_image_as_base64
Convert an image file to a base64 data URI string for embedding in web pages or documents.
Instructions
Convert an image file to base64 string with data URI prefix.
Args: image_path: Path to the image file
Returns: Base64 data URI string 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": {
"image_path": "<image_path>"
},
"name": "get_image_as_base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |