export_layers
Export each sprite layer to its own image file using an output pattern containing {layer}; add {frame} for animations and set overwrite to replace existing files.
Instructions
Export each layer to its own image file.
output_pattern must contain "{layer}" (e.g. "layers/{layer}.png"); add
"{frame}" too for animations. include_hidden also exports hidden layers.
overwrite: Replace files the pattern would expand onto (default False =
no-clobber). Aseprite expands the placeholders, so the check refuses when any
file matching the pattern already exists.
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": {
"filename": "<filename>",
"output_pattern": "<output_pattern>"
},
"name": "export_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Default: 1. | |
| filename | Yes | ||
| overwrite | No | Default: false. | |
| include_hidden | No | Default: false. | |
| output_pattern | Yes |