manage_slices
List, create, update, or delete named sprite slices in Aseprite, with optional 9-patch center rectangles, pivot points, colors, and user data.
Instructions
List, create, update, or delete named sprite slices with optional 9-patch center rect and pivot point.
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": "manage_slices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Slice bounds X. | |
| y | No | Slice bounds Y. | |
| data | No | Optional user data string. | |
| file | Yes | ||
| name | No | Slice name (required for add/set/delete). | |
| color | No | Optional hex slice overlay color. | |
| pivot | No | Optional pivot point (relative to slice bounds). | |
| width | No | Slice bounds width. | |
| action | Yes | ||
| center | No | Optional 9-patch center rectangle (relative to slice bounds). | |
| height | No | Slice bounds height. | |
| source | No | For action='list'. | |
| newName | No | New slice name (for set). | |
| clearPivot | No | For set: remove pivot. | |
| clearCenter | No | For set: remove 9-patch center. |