Apply a palette
apply_paletteRecolour an image to a game palette so assets from different sources match: PICO-8, Sweetie 16, Endesga 32, Game Boy, NES style or your own hex codes, or reduce it to its own best N colours. Optional ordered dithering for gradients. Transparency is kept.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "apply_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short name for the output files. | |
| colors | No | Without palette: reduce to this many of the image's own colours. | |
| dither | No | 0 is flat colour, 1 is strong ordered dithering. | |
| palette | No | pico-8, sweetie-16, endesga-32, gameboy, nes-like, or hex codes like "#1a1c2c #b13e53 ...". Leave out and give colors to use the image's own colours. | |
| image_url | No | Public http(s) URL of a PNG image, up to about 128×128 pixels. | |
| image_base64 | No | The PNG file as base64 (a data: URL also works). Use instead of image_url. |