Skip to main content
Glama

comfy_run_with_inputs

Upload local images, inject them as workflow inputs, and queue a ComfyUI workflow in one call. Eliminates separate upload, patch, and queue steps for img2img or inpaint.

Instructions

Upload local images, inject as workflow inputs, then queue.

Combines the three-step img2img / inpaint flow (upload + patch + queue) into one tool call. Each entry in inputs is a (label, local_path) pair: the file is uploaded to ComfyUI's input directory and the workflow's matching input widget is set to the uploaded filename.

Args: workflow: API-format workflow dict (will be deep-copied before patching - the caller's dict is not mutated). inputs: Mapping of label -> local file path. Labels may be "node_id.input_name" for explicit targeting or just "input_name" to patch every matching widget. front: Insert at the front of the queue (default False).

Returns: QueueAck (typed) with prompt_id, queue_number, plus an auto_snapshot field listing the upload mapping that was applied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frontNo
inputsYes
workflowYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
prompt_idNo
upload_mapNo
node_errorsNo
queue_numberNo
auto_snapshotNo
queue_positionNoDeprecated: ComfyUI does not return an ordinal queue position
Behavior5/5

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

The description discloses important behavioral details beyond annotations: the caller's workflow dict is deep-copied and not mutated, images are uploaded to ComfyUI's input directory, labels patch matching widgets, and the response includes an auto_snapshot field. This adds substantial non-obvious context and is consistent with the annotations.

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 front-loaded with a one-sentence purpose, then transitions into a tight Args/Returns structure. Every sentence contributes operational or semantic value, with no filler or redundancy.

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?

For a complex tool with nested objects, zero schema-level parameter descriptions, and meaningful side effects, the description is remarkably complete. It covers purpose, parameter behavior, mutation safety, queueing semantics, and a custom return field. The presence of an output schema makes the explicit return explanation acceptable and useful.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full parameter-documentation burden. It compensates well: it explains workflow as an API-format dict with copy semantics, inputs as label-to-local-path mappings with explicit targeting and wildcard patching, and front with queue-position behavior. All three parameters gain meaningful semantics beyond the bare 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?

The description opens with a specific action chain—"Upload local images, inject as workflow inputs, then queue"—and explicitly frames the tool as combining the three-step img2img/inpaint flow into one call. This clearly distinguishes it from sibling tools like comfy_queue_prompt, comfy_upload_image, and comfy_set_widget_value.

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?

The description clearly signals when this tool is useful: when a caller wants to perform the upload + patch + queue workflow for local images in one step, especially for img2img/inpaint. It does not explicitly name alternative tools or state when not to use it, so it misses the full exclusion guidance needed for a 5.

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/dreamrec/ComfyPilot'

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