Skip to main content
Glama
Adobe After Effects + Premiere Pro MCP Server

Adobe After Effects + Premiere Pro MCP Server

by kai217

pr_uxp_run

Run modern async JavaScript in Premiere Pro via the UXP API to automate tasks ExtendScript cannot handle, using await/return and built-in project, sequence, clip, and undo helpers.

Instructions

Run modern async JavaScript in Premiere through its UXP API (require("premierepro") is KAI.ppro). Use await and return. Helpers: KAI.project(), KAI.seq(name), KAI.t(seconds)->TickTime, KAI.sec(tickTime), KAI.tracks(seq, "video"|"audio"), KAI.clips(seq, kind, trackIndex) -> [{track,index,item}], KAI.clipInfo(c), KAI.items(), KAI.effectNames(), KAI.transact(label, (compound) => { compound.addAction(...) }) for ONE undoable step. ARGS holds args. Use this for what ExtendScript cannot do; use pr_run_script for everything else.

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": "pr_uxp_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
codeYes
timeout_secNo
expected_projectNoProject guard: refuse to run unless the open .prproj path contains this text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does disclose meaningful behavior: async execution model, `await`/`return` expectations, an ARGS binding, and undo-step granularity via KAI.transact. It does not disclose error/failure semantics, what happens on timeout, or that executed code mutates a live project with lasting side effects, so it stops short of full disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action and the sibling-routing rule are front-loaded, and the dense helper list is functional reference rather than filler. It is long and reads as a run-on, but nearly every clause carries information a caller would otherwise have to discover by trial.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a code-execution tool with no annotations and no output schema, the definition supplies the execution model, the helper surface, and the argument binding — enough to write a correct call. The remaining gap is what a run returns and how errors or timeouts surface, which matters but is secondary to getting the code written correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25%, so the description must compensate. It does explain the two most important parameters — `code` (write async code, use await/return) and `args` (bound to ARGS inside the script) — but `timeout_sec` is never mentioned (no units, default, or behavior) and `expected_project` relies entirely on the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Run modern async JavaScript in Premiere through its UXP API" states a specific verb, runtime, and execution context, and the closing sentence explicitly delineates it from the ExtendScript sibling pr_run_script. The helper inventory further pins down what the tool is for (UXP-only operations).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rule: "Use this for what ExtendScript cannot do; use pr_run_script for everything else" names the alternative and the selection condition. It also tells the caller to use `await` and `return`, and to use KAI.transact for a single undoable step, which are real usage constraints rather than restated capabilities.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.