palette_tool
Extract an optimal color palette from an image, fetch a Lospec palette, or convert palettes to .gpl, .hex, or .json for pixel-art workflows.
Instructions
Extracts an optimal palette from an image (via hybrid_bgm_oklab or oklab_median_cut), fetches a Lospec palette ('lospec:'), or converts any palette to .gpl, .hex, or .json.
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": {
"palette": "<palette>"
},
"name": "palette_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | PixelForge Palette | |
| palette | Yes | Color count (if input_image given), built-in id, 'lospec:<slug>', or palette file path. | |
| input_image | No | Optional image to extract palette from. | |
| output_file | No | Optional output palette file (.gpl, .hex, or .json). | |
| extract_mode | No | hybrid_bgm_oklab |