Fix fake pixel art
fix_pixel_artTurn fake pixel art (an AI image or an upscaled screenshot where each "pixel" is a blurry block of slightly different colours) into real pixel art: finds the pixel grid, rebuilds it at 1 pixel per cell with one clean colour per cell, and can limit the colours or map them to a palette. Removes a fake checkerboard background first.
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": "fix_pixel_art"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | No | Size of one art pixel in the source, if you know it. Found automatically when left out. | |
| name | No | Short name for the output files. | |
| scale | No | Also save a copy scaled up this many times with sharp pixels. | |
| colors | No | Reduce to this many colours. | |
| outline | No | Add a 1 pixel dark outline around the sprite. | |
| palette | No | Map to a palette: pico-8, sweetie-16, endesga-32, gameboy, nes-like, or hex codes like "#1a1c2c #b13e53 ...". | |
| 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. |