save_sprite_as
Save a copy of a sprite to a new path, optionally flattened, leaving the original untouched. Overwrite if specified.
Instructions
Save a copy of a sprite under a new path (optionally flattened).
The original file is left untouched. Useful for exporting an editable
.aseprite to another .aseprite, or snapshotting a version.
overwrite: Replace `new_filename` if it already exists (default False = no-clobber).
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>",
"new_filename": "<new_filename>"
},
"name": "save_sprite_as"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flatten | No | Default: false. | |
| filename | Yes | ||
| overwrite | No | Default: false. | |
| new_filename | Yes |