analyze_sprite
Inspect and critique pixel art quality by diffing frames, measuring bounds, detecting stray pixels, analyzing palettes, and auditing animation layers to catch issues before export.
Instructions
Inspect & critique pixel art quality: diff two frames (compare_frames), measure drawn bounding boxes & ground line (get_bounds), detect orphan/lone pixels & detached islands & empty cels (lint), compute color histogram & near-duplicate palette drift (color_stats), or audit animation layer coverage & tag overlaps (audit_animation).
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": {
"file": "<file>",
"action": "<action>"
},
"name": "analyze_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional region X (for compare_frames). | |
| y | No | Optional region Y (for compare_frames). | |
| file | Yes | ||
| frame | No | Frame to inspect (for lint/color_stats, default 1). | |
| layer | No | Optional layer/group name or path to isolate. | |
| width | No | Optional region width (for compare_frames). | |
| action | Yes | ||
| frameA | No | First frame (for compare_frames). | |
| frameB | No | Second frame (for compare_frames). | |
| frames | No | Frame(s) for get_bounds (default 'all'). | |
| height | No | Optional region height (for compare_frames). | |
| source | No | ||
| maxReport | No | For lint: max reported coordinates per category (default 64). | |
| nearThreshold | No | For color_stats: max channel diff flagged as near-duplicate (default 16). | |
| islandThreshold | No | For lint: max pixel count flagged as small detached island (default 4). |