view_media
Read image files (PNG, JPEG, GIF, WebP, BMP, SVG) from allowed directories, returning base64-encoded data and MIME type for analysis, display, or processing.
Instructions
Read an image file. Returns the base64 encoded data and MIME type. Only works within allowed directories.
SUPPORTED FORMATS: Images: PNG, JPEG, GIF, WebP, BMP, SVG
USAGE: Use this tool to read and encode image files for analysis, display, or processing. The tool streams files efficiently and returns base64-encoded data with proper MIME type detection.
Args: path: Absolute or relative path to the image file within allowed directories
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": {
"path": "<path>"
},
"name": "view_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |