read_image
Read an image file from the filesystem and return it as base64-encoded ImageContent for LLM vision analysis. Supports PNG, JPEG, GIF, and WebP formats.
Instructions
Read an image from the filesystem and return it as base64-encoded ImageContent. Supported formats: PNG, JPEG, GIF, WebP
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": {
"file_path": "<file_path>"
},
"name": "read_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the image file |