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
| Name | Required | Description | Default |
|---|---|---|---|
| front | No | ||
| inputs | Yes | ||
| workflow | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| prompt_id | No | ||
| upload_map | No | ||
| node_errors | No | ||
| queue_number | No | ||
| auto_snapshot | No | ||
| queue_position | No | Deprecated: ComfyUI does not return an ordinal queue position |