reorder_layers
Change layer order in After Effects compositions by specifying current and new positions to organize visual elements.
Instructions
Change the order of layers in a composition
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": {
"compId": "<compId>",
"layerIndex": "<layerIndex>",
"newIndex": "<newIndex>"
},
"name": "reorder_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Current index of the layer to move (1-based) | |
| newIndex | Yes | New index position for the layer (must be between 1 and the total number of layers in the composition) |