adjust_palette_color
Adjust a palette color by modifying its hue, saturation, or lightness in HSL space. Edit in place or add a new variant to avoid manual hex computation.
Instructions
Nudge a palette color in HSL space: darken/lighten via lightness, shift saturation or hue. Saves the model from hand-computing hex. Edits in place (all pixels using it update), or appends a fresh variant with as_new.
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>"
},
"name": "adjust_palette_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | Rotate hue, degrees | |
| name | No | ||
| index | Yes | Palette index | |
| as_new | No | Append a new entry instead of editing in place (default false) | |
| doc_id | Yes | Document id | |
| render | No | Include a render of the change (default true) | |
| lightness | No | Add to lightness, -1..1 (negative darkens) | |
| saturation | No | Add to saturation, -1..1 |