image_detect_grid
Detects the pixel-block scale of upscaled pixel-art images and optionally exports the exact 1x native pixel grid for cleanup or re-editing.
Instructions
Detects the pixel-block factor of an already-upscaled pixel-art image (e.g. 4x sprite) and optionally exports its exact 1x native pixel grid.
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_path": "<input_path>"
},
"name": "image_detect_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tolerance | No | ||
| input_path | Yes | ||
| recover_1x_output_path | No | Optional path to save recovered 1x native pixel-art PNG. |