animate_cels
Propagate, duplicate, offset, tween, or oscillate cels across frames to create animation loops, idle motion, and fill missing cels in Aseprite.
Instructions
High-level animation tools: propagate cels across frames, duplicate (and optionally reverse) a frame range, batch offset cels, tween cel position or opacity with easing, oscillate/bob cels for idle loops, or ensure missing cels exist.
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>",
"action": "<action>"
},
"name": "animate_cels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | X offset (for offset or relative tween_position). | |
| dy | No | Y offset (for offset or relative tween_position). | |
| to | No | End frame (for duplicate_range/tween/oscillate). | |
| ampX | No | For oscillate: horizontal amplitude in px. | |
| ampY | No | For oscillate: vertical amplitude in px. | |
| endX | No | For tween_position. | |
| endY | No | For tween_position. | |
| file | Yes | ||
| from | No | Start frame (for duplicate_range/tween/oscillate). | |
| wave | No | For oscillate: waveform (default 'sine'). | |
| after | No | For duplicate_range: insert after this frame (default end). | |
| layer | No | Layer name/path (or '*' for propagate/offset/ensure_layers). | |
| phase | No | For oscillate: initial phase offset 0..1 (default 0). | |
| action | Yes | ||
| cycles | No | For oscillate: number of wave cycles across range (default 1). | |
| easing | No | Easing curve for tween_position / tween_opacity (default 'linear'). | |
| frames | No | Target frame(s) (for offset/ensure_layers, default 'all'). | |
| layers | No | Optional list of layers (for propagate/offset/ensure_layers). | |
| startX | No | For tween_position (defaults to start cel X). | |
| startY | No | For tween_position (defaults to start cel Y). | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| reverse | No | For duplicate_range: reverse order to bake ping-pong loops. | |
| autoCopy | No | For tween/oscillate: copy start cel to empty frames automatically (default true). | |
| toFrames | No | Destination frame(s) (for propagate, default 'all'). | |
| fromFrame | No | Source frame (for propagate). | |
| endOpacity | No | For tween_opacity. | |
| skipExisting | No | For propagate: do not overwrite existing cels. | |
| startOpacity | No | For tween_opacity (defaults to start cel opacity). |