Sprite info
sprite_infoRetrieve the complete structural state of a sprite, including dimensions, palette, layers, frames, tags, slices, and current selection, to inform accurate edits.
Instructions
Full structured state of a sprite: dimensions, colour mode, palette, every layer (with opacity, blend mode, visibility, group nesting), every frame with its duration, animation tags, slices and the current selection. Read this before editing — guessing at layer names or frame counts is the most common way an agent corrupts someone's file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sprite | No | Which sprite: its id as '#7' (what every result reports back, and the only unambiguous form — two unsaved documents are both called 'Sprite'), its filename, or its display name. Omit to use the sprite Aseprite has focused. | |
| includeSlices | No | ||
| includePalette | No | Include the full palette as hex. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Stable id for this open document. Pass it back as '#<id>'. | |
| name | Yes | ||
| tags | Yes | ||
| width | Yes | ||
| frames | Yes | ||
| height | Yes | ||
| layers | Yes | ||
| slices | No | ||
| palette | No | ||
| filename | No | ||
| colorMode | Yes | ||
| selection | No | ||
| frameCount | Yes | ||
| activeFrame | No | ||
| activeLayer | No | ||
| transparentIndex | No |