Skip to main content
Glama

comfyui_upload_image

Upload a base64-encoded image to ComfyUI's input directory, making it available for workflows. Optionally specify subfolder, destination, or overwrite to control file placement.

Instructions

Upload an image to ComfyUI.

Defaults to ComfyUI's input directory (the destination workflows read from). Set destination='output' or 'temp' only if you have a specific reason.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesName for the uploaded file (e.g. 'reference.png')
overwriteNoIf True, replace any existing file with the same name. If False (default), ComfyUI auto-renames by suffixing ' (N)'.
subfolderNoOptional subfolder within the destination directory
image_dataYesBase64-encoded image data
destinationNoDestination directory. 'input' (default) is where workflows read user-supplied images from; 'output' and 'temp' are usually only useful for testing or scripted setups.input

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate a write operation (readOnlyHint=false) and non-destructive nature (destructiveHint=false), which the description supports by stating it uploads. The description adds context about the input directory being the default and the intended use of output/temp, going beyond what annotations alone convey.

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?

The description is brief, front-loaded with the core action, and uses a bulleted list to convey important notes clearly. No redundancy or unnecessary detail.

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

Completeness5/5

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

Given the simple nature of the tool, full schema coverage, and existing output schema, the description adequately covers what the tool does and key usage considerations. It includes practical destination guidance without needing to restate return values.

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?

The schema provides 100% description coverage for all parameters, including details about overwrite behavior and destination. The description does not add significant extra meaning, though it does highlight the destination parameter's context with 'destination workflows read from'.

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 opens with 'Upload an image to ComfyUI' which is a specific verb and resource, clearly distinguishing it from sibling tools like comfyui_upload_mask by name and function. It is concise and unambiguous.

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

Usage Guidelines3/5

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

The description provides guidance on when to use the default destination ('input') and advises setting other destinations 'only if you have a specific reason.' However, it does not explicitly discuss alternatives or when not to use this tool, such as when uploading a mask would be more appropriate.

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/hybridindie/comfyui_mcp'

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