ae_run_jsx
Run custom ExtendScript code in After Effects with an args object to handle tasks beyond predefined tools. Supports restricted or unsafe modes and returns JSON-serializable results.
Instructions
Escape hatch: run a Function-body of ExtendScript. Receives args parameter. Always undo-grouped. Use mode=unsafe for arbitrary code. Prefer high-level tools when possible. Return a JSON-serializable value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| code | Yes | Function body, e.g. 'return app.project.activeItem.name;' | |
| mode | No | unsafe | |
| description | No | Short reason for audit |