run_script
Run raw ExtendScript in Premiere Pro for any operation not covered by the standard editing tools.
Instructions
Escape hatch: run raw ExtendScript in Premiere for anything the typed tools do not cover. ES3 only (var, no arrow functions, no template literals, no JSON object). End with return __result({...}) or return __error('...'). Helpers available: __seq, __qe, __findClip, __qeClipAt, __qeTrackFor, __component, __property, __componentNames, __clearKeys, __ticksToSeconds, __secondsToTicks.
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": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ExtendScript body in ES3 syntax | |
| timeout_ms | No |