Sprite info
sprite_infoFull 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.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sprite_info"
}
}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 | ||
| modified | Yes | Unsaved changes present in this document. | |
| colorMode | Yes | ||
| selection | No | ||
| frameCount | Yes | ||
| activeFrame | No | ||
| activeLayer | No | ||
| transparentIndex | No |