quantize_to_palette
Snap opaque pixels to the nearest palette color while preserving alpha, enforcing palette discipline after intake or shading in RGB sprites.
Instructions
Snap every opaque pixel of the active cel to its nearest color in the
sprite's palette (alpha preserved) — enforce palette discipline after intake
or shading. RGB sprite; one undo step. Headless: pass file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "quantize_to_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No |