apply_mask
Apply a mask to a target view, protecting black pixels from processing while allowing white pixels. Set inverted=true to swap protected and processed 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.
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": {
"target_id": "<target_id>",
"mask_id": "<mask_id>"
},
"name": "apply_mask"
}
}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 |