desaturate
Remove color from a layer using GIMP's Luma and other conversion modes. Specify the layer ID and choose a mode to make it grayscale.
Instructions
Desaturate a drawable using a GIMP desaturation mode.
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": "desaturate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | DESATURATE-LUMA | |
| layer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||