create_slice
Add a named slice over a canvas rectangle in an Aseprite sprite, applying it to every frame. Use it to define export regions or 9-slice bounds with optional pivot and color.
Instructions
Add a named slice over rect (canvas pixels); names must be unique.
The slice covers every frame (per-frame slice keys are not supported).
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": "<name>",
"rect": "<rect>"
},
"name": "create_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Slice name | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| rect | Yes | Slice bounds in canvas pixels | |
| color | No | Colour the editor shows the slice in | |
| pivot | No | Pivot point relative to the slice's top-left | |
| center | No | 9-slice centre, relative to the slice's top-left; must fit inside it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||