Edit an animation
edit_animationModify an existing animation file and save a copy: change stage size, frame rate, background, add, delete, rename, hide or show layers, and run engine commands. The original file stays unchanged.
Instructions
Change an existing animation (.anicraft, or Animate .fla / .xfl) and save a copy: stage size, frame rate and colour, add layers (shapes and keyframes as in create_animation), delete, rename, hide or show layers, or run engine commands. The input file is never changed; the result goes next to it (suffix _edited) or to output_dir / output_path.
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": {
"input_path": "<input_path>"
},
"name": "edit_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last frame to export. | |
| from | No | First frame to export (0-based; default the first). | |
| frame | No | png / svg: the frame to export (default 0). | |
| scale | No | Size of GIF / video / pictures relative to the stage (default 1). | |
| stage | No | ||
| suffix | No | _edited | |
| formats | No | ||
| commands | No | Engine commands run last (see list_anicraft_catalog). | |
| overwrite | No | Replace existing outputs. | |
| add_layers | No | ||
| input_path | Yes | ||
| output_dir | No | Absolute output folder (default: next to the input; required for new files). | |
| hide_layers | No | ||
| output_path | No | Absolute output file for the first format (its extension must match). | |
| show_layers | No | ||
| delete_layers | No | Layer names. | |
| rename_layers | No | {"old name": "new name"}. |