check_animation
Audit an Aseprite animation without changing it: verify required layers, frame ranges, overlaps, and common frame warnings so errors are caught before export.
Instructions
Audit the animation without changing it; every layer is checked, nested ones too.
Each finding is {kind, severity, message} plus layer and frame where they apply.
Errors: missing_layer (a named layer does not exist), out_of_range (a layer has
pixels in a frame outside its layer_frame_ranges entry), overlap (an overlap_pairs
pair has pixels on the same canvas spot; with pixels and bounds).
Warnings: missing_in_range (no pixels in a frame inside its range), ambiguous_layer
(a bare name matches several layers; the shallowest is used), empty_frame (no
visible pixels), cel_off_canvas, frame_duration (under 10 ms or over 10 s).
Ranges and overlaps look at a layer's own pixels, hidden or not; tilemap layers are
left out of overlap checks. The overlap scan covers where the pairs' cels meet, summed
over pairs and frames; past ASEPRITE_MCP_MAX_SCAN_PIXELS (default 16777216) the call
fails before scanning, so check fewer frames or pairs. ok is true when there is no
error. At most 200 findings are listed (truncated says so; finding_count is the
total). Only frames are checked.
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": {
"path": "<path>"
},
"name": "check_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| frames | No | Frames: a number, "1-4", "1-4,7" or "all" (1-based) | all |
| overlap_pairs | No | Layer pairs whose pixels must not overlap | |
| required_layers | No | Layers that must exist | |
| layer_frame_ranges | No | Layer name or path -> the frames it may have pixels in, e.g. {"Sword": "3-5"}; a group covers all its layers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||