apply_mask
apply_maskAttach a mask view to an image window to restrict processing to specific areas. Optionally remove or invert the mask to protect bright regions.
Instructions
Attach (or remove with remove:true) a mask view to an image window; subsequent processes on that view are masked. inverted:true protects where the mask is bright.
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": {
"id": "<id>"
},
"name": "apply_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| remove | No | ||
| mask_id | No | ||
| visible | No | ||
| inverted | No |