list_slices
Retrieve all sprite slices with bounds, pivot, color, and user-data, including parsed JSON, to inspect animation metadata and distinguish unset from set fields.
Instructions
List every slice with its bounds, center, pivot, colour and user-data.
User-data comes back two ways, because it is one string that is sometimes a document.
`data` is the string exactly as Aseprite stores it, so it round-trips through
`set_slice` unchanged. `data_parsed` is added only when that string is valid JSON,
which is the shape worth sending: `{"type": "hitbox", "id": "body"}` is what
`export_slice_metadata` reads a slice's type and id from, and what
`build_asset_from_spec` writes. A slice with no user-data has neither field, so "set
and forgot" and "never set" are now distinguishable, which they were not while this
tool reported the same thing for both.
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": {
"filename": "<filename>"
},
"name": "list_slices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes |