Rename layer
rename_layerRenames a single layer in an After Effects composition by index, name, or selection and returns its updated index, ID, and new name.
Instructions
Rename one layer in a composition. Returns the updated layer description (index, id, new name).
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": {
"layer": "<layer>",
"name": "<name>"
},
"name": "rename_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | Yes | New layer name. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. |