add_slice
Add a slice to an Aseprite sprite, optionally defining 9-slice center and pivot, or duplicate an existing slice with copyFrom to reuse its bounds and settings.
Instructions
Adds a slice (with optional 9-slice center and pivot), or duplicates one with copyFrom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| name | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| color | No | '#rrggbb', '#rrggbbaa', a name, a palette index, or {r,g,b,a} / {h,s,v,a} / {h,s,l,a} / {gray,a} | |
| pivot | No | Pivot relative to the slice; false removes it | |
| bounds | No | ||
| center | No | 9-slice center, relative to the slice; false removes it | |
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| copyFrom | No | Slice to duplicate | |
| properties | No | User-defined properties to set (object.properties) |