export
Save sprite copies to PNG, GIF, WebP, JPG, SVG, or other formats using scale, tags, frame ranges, slices, layers, and filename templates; multi-frame single-image output writes one file per frame.
Instructions
Exports a copy of the sprite to any format (png, gif, webp, jpg, bmp, tga, pcx, ico, qoi, flc, svg, css, ...). Options: scale, a tag or a 1-based frame range, a slice, specific layers, or a filename template like 'out_{frame}.png' ({frame} counts from 0). Single-image formats with several frames get one file per frame (name1.png, name2.png..., or starting from a trailing number in the name); the result lists every file written.
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>"
},
"name": "export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| file | Yes | ||
| scale | No | ||
| slice | No | ||
| aniDir | No | ||
| bounds | No | ||
| layers | No | Export only these layers | |
| 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 | |
| toFrame | No | ||
| fromFrame | No | ||
| ignoreEmpty | No | ||
| playSubtags | No | ||
| filenameFormat | No |