delete-layer
Delete a layer from an After Effects composition by providing its name or index. Specify the composition to target and remove the unwanted layer instantly.
Instructions
Delete a layer from a composition. Target the layer by layerIndex or layerName.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete-layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compName | No | Composition name (or active comp if omitted). | |
| compIndex | No | 1-based comp index, if compName is omitted. | |
| layerName | No | Layer name to delete (alternative to layerIndex). | |
| layerIndex | No | 1-based layer index to delete. |