Image to pixel art
pixelate_imageConvert photos or illustrations into pixel art by shrinking them to a pixel grid, reducing colors or applying a named palette, and saving the result as a PNG from a local path or URL.
Instructions
Turn a photo or illustration into pixel art: shrink it to a pixel grid, reduce it to a few colours (or a named palette) and save a PNG. Accepts a local PNG/JPEG path or an http(s) URL.
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": {
"input": "<input>"
},
"name": "pixelate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path or URL of a PNG or JPEG image | |
| scale | No | Upscale factor for the saved PNG, nearest neighbour (e.g. 8 for a crisp preview) | |
| width | No | Width of the pixel grid in pixels (height keeps the aspect ratio) | |
| colors | No | Number of colours when no palette is given | |
| output | No | Where to save the PNG (defaults next to the input) | |
| palette | No | Palette name (pico-8, sweetie-16, endesga-32, game-boy, 1-bit) or hex colours like "#1a1c2c,#5d275d" |