add_frames
Inserts one or more frames into an Aseprite sprite at a chosen position, optionally copying adjacent cel content and setting frame duration. Returns the new frame numbers.
Instructions
Insert frames, empty unless copy_content is true. Returns the new frame numbers.
copy_content copies every layer's cel of the frame before the new ones (the old first frame when after=0) as independent cels. Without duration_ms the new frames take the duration of that same frame.
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": {
"path": "<path>"
},
"name": "add_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| after | No | Insert after this frame; 0 inserts at the start, null appends | |
| count | No | Frames to add | |
| duration_ms | No | Duration of the new frames | |
| copy_content | No | Copy the cels of the frame before the new ones |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||