execute-jsx
Execute arbitrary ExtendScript in After Effects for automation, project modifications, and JSON-serializable returns using function bodies with parameters.
Instructions
Execute arbitrary ExtendScript in AE. Code is a function body: use return for a JSON-serializable result; access parameters as args. May modify projects and files. ES3 syntax is recommended for AE 2024+.
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": "execute-jsx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| parameters | No |