layer_convertType
Convert a Group, Bone, or Switch layer into another container type while preserving children, transforms, animation channels, masking, and Layer Comp membership.
Instructions
Convert a Group, Bone, or Switch layer to another container type preserving children, transforms, animation channels, masking, Layer Order, and Layer Comp membership.
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": {
"targetType": "<targetType>"
},
"name": "layer_convertType"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| newName | No | Name for converted layer when deleteOriginal=false | |
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| targetType | Yes | ||
| frameByFrame | No | Enable Frame-by-Frame when targetType='switch' | |
| deleteOriginal | No | Delete source layer after copying children/channels (default: true) |