Recolour to a palette
remap_paletteRecolour an existing pixel art image so every pixel uses a colour from the given palette (e.g. PICO-8 or Game Boy). Size is kept. Returns the PNG.
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": "remap_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| palette | Yes | Palette id (e.g. pico-8, game-boy-dmg, cga-16, sweetie-16; see list_palettes) or hex colours like "#1a1c2c,#5d275d" | |
| image_url | No | Public http(s) URL of a PNG or JPEG (max 4 MB, 2048x2048) | |
| image_base64 | No | PNG or JPEG as base64 (or a data: URL), if there is no public URL |