novelai_create_mask
Creates a local infill mask at the source image size, using white to repaint and black to keep; supports rectangle, ellipse, and polygon regions with optional feathering and saves a new PNG.
Instructions
Create a local infill mask at the source image size. White repaints; black keeps. Supports rectangles, ellipses and polygons in pixel coordinates, plus optional feathering. Saves a new PNG; no network request.
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>",
"regions": "<regions>"
},
"name": "novelai_create_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feather | No | ||
| regions | Yes | ||
| image_path | Yes |