duplicate_frame
Copy a specified frame in an Aseprite sprite and insert the copy directly after the original, returning the new frame number and updated frame count.
Instructions
Duplicate an existing frame (1-based); the copy is inserted directly after it.
`frame` must already exist: an out-of-range number is rejected with the sprite's
valid range rather than clamped to it.
Returns `newFrame`, the copy's number (always `frame + 1`), and the new `frameCount`,
plus `inserted` and `renumbered_from` exactly as `add_frame` reports them: every frame
after the one duplicated moves up by one, and a tag that covered it grows to take in
the copy.
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>",
"frame": "<frame>"
},
"name": "duplicate_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | ||
| filename | Yes |