Skip to main content
Glama

get_image

Retrieve a generated image from ComfyUI using its filename (obtained via get_history) and return it inline.

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 are provided, so the description carries full burden. It mentions returning an inline image and not requiring COMFYUI_PATH, but does not disclose error handling, size limits, or whether it modifies any state. More detail would be beneficial.

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, front-loaded with main purpose, no fluff. Every sentence adds value.

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

Completeness3/5

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

Given 4 parameters and no output schema, the description could explain return format or error cases. It is somewhat complete but leaves gaps. Sibling tools like list_output_images exist, which provides some context.

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?

Input schema has 100% description coverage for all 4 parameters. The description adds little beyond the schema: it mentions that filename comes from get_history, but the schema already describes each parameter. Baseline 3 is appropriate.

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?

The description clearly states the verb 'Fetch' and the resource 'generated image from ComfyUI' and specifies it returns an inline image. It distinguishes from siblings like view_image and list_output_images by focusing on fetching and returning as inline.

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.' Also notes it works with remote instances and does not require COMFYUI_PATH. However, it does not explicitly state when to avoid using this tool in favor of alternatives like view_image.

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