get_image
Fetch a generated image as base64 from ComfyUI's output directory by filename, with optional subfolder, format, and quality settings.
Instructions
Retrieve a generated image as base64. Use this to fetch images from ComfyUI's output directory.
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": {
"filename": "<filename>"
},
"name": "get_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of image location | output |
| filename | Yes | The filename of the image to retrieve (e.g., 'ComfyUI_00001_.png') | |
| subfolder | No | Subfolder within the output directory | |
| imageFormat | No | Output image format (jpeg is smallest, png is lossless, webp is modern) | jpeg |
| imageQuality | No | Image quality for JPEG/WebP (1-100, higher = better quality but larger) |