pencil2d_add_frames_batch
Batch insert multiple animation keyframes into a Pencil2D project from a list or sorted image directory, with optional frame spacing, layer creation, and starting frame.
Instructions
Batch insert multiple animation keyframes into a project from a list or directory in a single operation.
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": {
"project_path": "<project_path>"
},
"name": "pencil2d_add_frames_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | Step interval between frames (default 1). | |
| frames | No | List of keyframe objects to insert. | |
| layer_name | No | Target layer name when importing from directory. | |
| start_frame | No | Starting frame index when importing from directory (default 1). | |
| project_path | Yes | Path to the .pclx file. | |
| directory_path | No | Optional directory containing image frames to import in sorted order. | |
| auto_create_layers | No | Automatically create bitmap layer if specified layer name does not exist (default true). |