execute_extendscript
Run raw ExtendScript in Premiere Pro to handle tasks other tools don't cover, returning the last expression's value.
Instructions
Run raw ExtendScript in Premiere Pro for anything the other tools don't cover. The value of the last expression is returned (objects are JSON-encoded). app, qe (after app.enableQE()) and the helper functions of this bridge are available. Times in the DOM are Time objects/ticks (254016000000 per second).
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_extendscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| enableQE | No | Call app.enableQE() first so `qe` is available | |
| timeoutSeconds | No |