create_sprite
Creates a new .aseprite sprite in a staged session with configurable size, frames, palette, and preview; call commit_changes to write it to disk, or enable autoCommit to save immediately.
Instructions
Create a new .aseprite sprite in a staged session (call commit_changes to write to disk, or set autoCommit=true).
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>",
"width": "<width>",
"height": "<height>"
},
"name": "create_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Target .aseprite file path. | |
| width | Yes | ||
| frames | No | Initial frame count (default 1). | |
| height | Yes | ||
| palette | No | Optional built-in palette preset. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| colorMode | No | Default: rgb. | |
| layerName | No | Initial layer name. | |
| overwrite | No | Allow replacing an existing file on disk (backed up on commit). | |
| autoCommit | No | Write immediately to disk. | |
| background | No | Optional fill color for frame 1 (default transparent). | |
| frameDuration | No | Default frame duration in ms. |