eval_jsx
Executes ExtendScript code inside Adobe After Effects to automate compositions, layers, effects, and keyframes, returning JSON-serializable results and optionally grouping edits into an undo step.
Instructions
Run ExtendScript inside AE. code is a function body: use return to send back a value
(plain objects/arrays/numbers/strings serialize to JSON). Helpers: AEB.comp(nameOrIndex),
AEB.layer(comp, nameOrIndex), AEB.prop(layer, 'Transform/Position'), AEB.item(nameOrIndex).
Pass undo_name to wrap the edit in an undo group.
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": {
"code": "<code>"
},
"name": "eval_jsx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| undo_name | No |