Image to pixel art
pixelate_imageTurn a photo or illustration into pixel art: shrink it to a pixel grid and reduce it to a few colours (or a named palette). Returns the PNG.
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": "pixelate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Nearest-neighbour upscale of the returned PNG, capped at 1024 px | |
| width | No | Width of the pixel grid in pixels (height keeps the aspect ratio) | |
| colors | No | Number of colours when no palette is given | |
| palette | No | 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 |