get_expression
Retrieves the expression applied to a specific layer property in an After Effects composition. Use it to inspect animation logic before editing or debugging expressions.
Instructions
Get the expression from a layer property
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>",
"propertyPath": "<propertyPath>"
},
"name": "get_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| propertyPath | Yes | Property path (e.g., 'Transform.Position', 'Transform.Scale') |