quantize_to_palette
Reduce colors in an image by snapping opaque pixels to the nearest palette color, simplifying art to match a limited palette.
Instructions
Snap opaque pixels to the nearest color in the active palette.
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": {
"filename": "<filename>"
},
"name": "quantize_to_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| end_frame | No | ||
| layer_name | No | ||
| start_frame | No |