upscale_pixel_art
Upscale pixel art or retro sprites locally by an integer factor (2x–8x) with nearest-neighbor interpolation, preserving crisp edges and lossless PNG or WebP output.
Instructions
Losslessly upscale pixel art or retro sprites locally by an integer factor (2x-8x) using nearest-neighbor interpolation via sharp.
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": {
"imagePath": "<imagePath>",
"scale": "<scale>"
},
"name": "upscale_pixel_art"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | Yes | Integer upscale factor (2 to 8). | |
| format | No | Lossless output format. | png |
| imagePath | Yes | Path to the local pixel-art image. | |
| overwrite | No | Allow overwriting an existing output file. | |
| outputPath | No | Optional destination path (defaults to <name>_<scale>x.<format>). |