ae_delete_layer
Remove a layer from an After Effects composition. Requires explicit confirmation (confirm=true) to prevent accidental destructive changes.
Instructions
Delete a layer. DESTRUCTIVE — requires confirm=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": "<confirm>"
},
"name": "ae_delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to delete | |
| comp_name | No | Composition name. Prefer this over index. | |
| comp_index | No | 1-based project item index if name is ambiguous. | |
| layer_name | No | Layer name (preferred). | |
| layer_index | No | 1-based layer index in the comp. |