upload_image
Upload local images to ComfyUI's input directory for use in LoadImage nodes. Automatically selects HTTP upload for remote ComfyUI or filesystem copy when configured.
Instructions
Upload a local image file to ComfyUI's input/ directory so it can be referenced in LoadImage nodes. Tries HTTP upload first (works with remote ComfyUI), falls back to filesystem copy when COMFYUI_PATH is set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_path": "<source_path>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Override the filename in ComfyUI's input/ directory. Auto-detected from source path if omitted. | |
| source_path | Yes | Absolute path to the local image file to upload |