upload_image
Upload a source image (local path or base64) to ComfyUI's input folder, making it available for LoadImage in img2img, inpaint, or ControlNet workflows. Optionally upload a mask for an existing image.
Instructions
Upload a source image into ComfyUI's input folder so LoadImage can use it (img2img / inpaint / ControlNet). Exactly one of image_path (local file) or image_base64. mask_for={filename, subfolder?, type?} uploads this as a MASK for that already-uploaded image instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| mask_for | No | ||
| overwrite | No | ||
| subfolder | No | ||
| image_path | No | ||
| image_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||