execute_extendscript
Execute custom ExtendScript in Premiere Pro and return the script's string result for direct timeline control when standard tools are insufficient.
Instructions
Run arbitrary ExtendScript inside Premiere Pro via the Scout CEP helper and return the script's string result. The QE DOM is available (app.enableQE() has been called). The script must be self-contained — each call is an independent eval with no shared state beyond Premiere's DOM. Return a JSON-shaped string for structured results. POWER TOOL: this can do anything Premiere scripting can, including destructive changes with no undo grouping — prefer the named tools when one exists, and back up the sequence before structural timeline edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ExtendScript source to evaluate. Its final expression's string coercion is the result. |