apply_mask
Protect image regions during processing by applying a mask to a target view; black areas stay unchanged while white areas allow edits. Optionally invert the mask to swap protected and editable areas.
Instructions
Apply a mask to a target view. The mask protects areas where it is black (0) and allows processing where it is white (1). Use inverted=true to flip this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask_id | Yes | Mask view ID | |
| inverted | No | Invert the mask (default false) | |
| target_id | Yes | Target view ID |