delete_slice
Remove a slice from an Aseprite sprite by name or index, optionally writing changes back to the file in live or batch mode.
Instructions
Deletes a slice.
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": {
"slice": "<slice>"
},
"name": "delete_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| slice | Yes | ||
| 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 |