upload_file
Upload local image files into ComfyUI's input directory to stage source images for img2img or inpaint workflows. Requires absolute paths; optionally overwrite existing files.
Instructions
Upload files from this machine into the target ComfyUI's input directory.
Wraps comfy upload <files...> --overwrite/--no-overwrite. Stages
source images/masks a workflow references by filename — required for
img2img/inpaint.
Args: overwrite: True replaces an existing file; False (default) keeps it and stores the upload under a deduplicated name.
Uploads to whichever ComfyUI this server targets (local, or a configured
COMFYUI_URL/COMFYUI_HOST) — needs comfy-cli >= 1.14.0 for the
remote case; older raises rather than silently staging files the remote
can never find.
Gotchas:
Every path must exist on THIS filesystem and be ABSOLUTE — a relative path resolves against comfy-cli's workspace cwd, not the agent's.
A cancelled/timed-out call strands a partial batch; re-run to finish.
If attached in chat, MCP never receives the bytes — look for the absolute path some clients inject into context (e.g. Claude Code's
[Image: source: <path>]) and pass that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| overwrite | No |