set_palette_color
Set or replace a specific palette entry by its 0-based index, automatically expanding the palette when the index exceeds the current size.
Instructions
Set a single palette entry by index (0-based). Grows the palette if needed.
The index is bounded by the palette ceiling: the Lua below resizes the palette to
`index + 1`, so the index *is* a palette size.
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>",
"index": "<index>",
"color": "<color>"
},
"name": "set_palette_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | ||
| index | Yes | ||
| filename | Yes |