set_palette_color
Update a palette index color (and optional name) to instantly recolor all pixels using that index.
Instructions
Change the color (and optionally name) of a palette entry. All pixels using the index update visually.
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>",
"hex": "<hex>"
},
"name": "set_palette_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | ||
| name | No | ||
| index | Yes | Palette index | |
| doc_id | Yes | Document id | |
| render | No | Include a render of the change (default true) |