remove_palette_color
Remove a color from the palette and remap its pixels to a different color, automatically shifting higher palette indices down by one.
Instructions
Delete a palette entry, remapping its pixels to remap_to. Higher indices shift down by one.
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": {
"doc_id": "<doc_id>",
"index": "<index>",
"remap_to": "<remap_to>"
},
"name": "remove_palette_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Palette index | |
| doc_id | Yes | Document id | |
| render | No | Include a render of the change (default true) | |
| remap_to | Yes | Palette index existing pixels are remapped to |