Skip to main content
Glama

get_image

Return a generated ComfyUI image as inline content using its filename from get_history, compatible with remote instances.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesOutput image filename, e.g. PulID_Klein_00001_.png
typeNoImage directory: output (default), input, or tempoutput
subfolderNoSubfolder within the directory, if any
save_dirNoLocal directory to save the image file. Defaults to /tmp/comfyui-images/.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries the burden. Notes that it works with remote instances without requiring COMFYUI_PATH, and returns inline image. Lacks details on authentication, error handling, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no redundant information. All content serves a purpose: purpose, return format, prerequisite, and behavioral note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers essential context: purpose, prerequisite, remote capability, inline return, and default save directory. Lacks error conditions or file existence handling, but sufficient for a simple fetch tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%; description adds only an example filename (PulID_Klein_00001_.png) and restates default for save_dir. No significant extra meaning beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states 'Fetch a generated image from ComfyUI and return it as an inline image.' Specifies verb and resource, and distinguishes from sibling tools like list_output_images or view_image by focusing on fetching a single image by filename.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit prerequisite: 'Use get_history first to obtain the filename.' Does not mention alternatives or when not to use, which is acceptable given the tool's simple purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artokun/comfyui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server