execute_script
Run custom ExtendScript code in Adobe After Effects to automate tasks, modify projects, or control application functions programmatically.
Instructions
Execute a custom ExtendScript in After Effects
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": {
"script": "<script>"
},
"name": "execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The ExtendScript code to execute | |
| wrapInTransaction | No | Wrap script in app.beginUndoGroup/endUndoGroup | |
| undoGroupName | No | Name for the undo group | Script Execution |