pencil2d_add_layer
Add a bitmap, vector, sound, or camera layer to a Pencil2D project by specifying the .pclx file path and layer name.
Instructions
Add a new layer (bitmap, vector, sound, or camera) to a Pencil2D project.
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": "<name>"
},
"name": "pencil2d_add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new layer. | |
| visible | No | Initial layer visibility (default true). | |
| layer_type | No | Type of layer to create (default 'bitmap'). | |
| project_path | Yes | Path to the .pclx file. |