create_sprite
Create a new sprite file with specified dimensions, color mode, and optional background. Supports .aseprite/.ase format for editable layers and frames.
Instructions
Create a new sprite file and save it.
Args:
filename: Output path. Relative paths go in the workspace. Use a
.aseprite/.ase extension to keep layers & frames editable.
width, height: Canvas size in pixels (1-65535).
color_mode: "rgb" (default), "indexed", or "gray".
background: Optional fill colour for the first layer (e.g. "#1d2b53").
Omit for a transparent canvas.
overwrite: Replace `filename` if it already exists (default False = no-clobber).
Returns the new sprite's structured info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| overwrite | No | ||
| background | No | ||
| color_mode | No | rgb |