remove_layer
Removes a layer from an After Effects composition after explicit confirmation is set, letting you delete unwanted layers by name or index during automated project edits.
Instructions
Removes a layer from the composition. Requires confirm_removal: true.
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": {
"confirm_removal": "<confirm_removal>"
},
"name": "remove_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | Name of the layer. | |
| layer_index | No | 1-based index of the layer. | |
| composition_id | No | Optional composition item ID. | |
| confirm_removal | Yes | Must be set to true to execute destructive layer removal. |