Load Image from File Path
load_image_from_pathLoad a local image file and return base64-encoded data to pass to image tools for generation, editing, description, or analysis.
Instructions
Read a local image file and return it as base64-encoded data ready to pass to generate_image, edit_image, describe_image, or analyze_image tools. Supports JPEG, PNG, GIF, WebP, BMP.
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": {
"filePath": "<filePath>"
},
"name": "load_image_from_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or relative path to the image file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| success | Yes |