sprite_verify
Run numeric consistency checks on sprite frames, returning hard pass/fail results to replace visual inspection. Validate palette, jitter, spread, protected, leftover, and scale against canon rules.
Instructions
Run numeric consistency checks and get hard pass/fail numbers — the replacement for eyeballing hundreds of frames. Checks: 'palette' (every pixel on the canon palette), 'jitter' (landmarks stay put across frames), 'spread' (a region's mean luminance agrees across a file group — catches 'bright from behind, dark from the front'), 'protected' (vs baseFile: face/outline pixels untouched), 'leftover' (vs baseFile: no source-region pixel survived inside a repainted area), 'scale' (relative sizes match the canon table). Files may be directories (all PNG/GIF inside).
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": {
"files": "<files>"
},
"name": "sprite_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cellH | No | spritesheet cell height (PNG sheets only) | |
| cellW | No | spritesheet cell width (PNG sheets only) | |
| files | Yes | files or directories to verify | |
| checks | No | which checks to run (default: palette + jitter) | |
| region | No | region name for 'spread'/'leftover' | |
| baseFiles | No | originals for 'protected'/'leftover'. Paired to files by identical filename (case-insensitive) when names line up, otherwise by list position (equal lengths required). Each result echoes which base it was compared against. | |
| canonPath | No | path to sprite-canon.json (default: search upward from the target file) | |
| scaleNames | No | for 'scale': map of filename -> name in canon.scale.heights |