create_sprite
Creates a new sprite file with one layer and one frame at the specified path and dimensions, with an optional background color or transparent layer.
Instructions
Create a sprite file with one layer and one frame and return its info.
The format follows the extension: .aseprite keeps layers, frames, tags and slices; other formats hold one flat layer (.gif also keeps frames), and later edits they cannot store are refused. The folder must already exist. Without a background the layer is transparent.
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>",
"width": "<width>",
"height": "<height>"
},
"name": "create_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| width | Yes | Width in pixels | |
| height | Yes | Height in pixels | |
| overwrite | No | Replace the file if it already exists | |
| background | No | Fill colour of the layer; default transparent | |
| color_mode | No | Colour mode | rgb |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||