mask_stroke
Paint hide or reveal strokes along a polyline on a layer mask to refine AI cut-outs or create a paint mask when none exists.
Instructions
Paint on a layer's mask: mode hide or reveal, polyline [[x,y],...] in document px. Works on any mask (refine an AI cut-out); a layer without a mask gets a paint mask.
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": {
"layer": "<layer>",
"points": "<points>"
},
"name": "mask_stroke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | hide | |
| size | No | ||
| layer | Yes | ||
| points | Yes | ||
| opacity | No | ||
| project | No | ||
| hardness | No |