get_image
Fetch a generated image from ComfyUI as an inline image by specifying its filename. Works remotely; use get_history to obtain the filename.
Instructions
Fetch a generated image from ComfyUI and return it as an inline image. Works with remote ComfyUI instances — does not require COMFYUI_PATH. Use get_history first to obtain the filename.
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 | Image directory: output (default), input, or temp | output |
| filename | Yes | Output image filename, e.g. PulID_Klein_00001_.png | |
| save_dir | No | Local directory to save the image file. Defaults to /tmp/comfyui-images/. | |
| subfolder | No | Subfolder within the directory, if any |