gimp_layer_mask
Add, apply, or remove GIMP layer masks to control visibility, edit non-destructively, or discard masks. Supports white, black, selection, alpha, copy, and grayscale mask types.
Instructions
Máscaras de capa: add (white=todo visible, black=todo oculto, selection=desde la selección, alpha, copy, grayscale), apply (aplica y elimina la máscara) o remove (la descarta).
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_id": "<layer_id>"
},
"name": "gimp_layer_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | add | |
| layer_id | Yes | ||
| mask_type | No | white |