upload_mask
Upload a mask image to ComfyUI's input directory for inpainting. Extracts the alpha channel, using white areas as regions to inpaint.
Instructions
Upload a mask image to ComfyUI's input directory.
The mask is processed to extract the alpha channel for use with inpainting workflows. White areas in the mask will be inpainted.
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": {
"image_path": "<image_path>"
},
"name": "upload_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Overwrite existing file. Default: false. | |
| subfolder | No | Subfolder within input directory. Default: "" (root). | |
| image_path | Yes | Absolute path to the mask image file. | |
| original_ref | No | Reference to the original image this mask belongs to. Default: "" (none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||