copy_frames
Copy cels from a source frame to target frames, including layers in groups, with replace or missing-only modes and optional linked cels.
Instructions
Copy the cels of one frame into other frames, layers inside groups included.
replace makes each target cel equal to the source: image, position, opacity and z-index, and a target is cleared where the source frame has no cel. missing_only only fills targets where the layer has no cel yet. link=true makes the copies linked cels that share the source's image. The source frame itself is skipped if listed in targets. Frame durations are not copied. A locked layer (or one in a locked group) that the copy would change is refused.
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>",
"source": "<source>",
"targets": "<targets>"
},
"name": "copy_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | Make the copies linked cels | |
| mode | No | replace every target cel, or fill only where a layer has none | replace |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layers | No | Layers to copy (a group means all layers in it); null for all | |
| source | Yes | 1-based frame number | |
| targets | Yes | Frames to copy into ("2", "3-6", "all"), or "append:N" to add N empty frames at the end and copy into those |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||