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

Adobe After Effects + Premiere Pro MCP Server

by kai217

ae_run_script

Executes custom ExtendScript in the open After Effects project and returns JSON-serialized results; use it to automate project edits, inspect layers/comps, and wrap changes in a named Undo group.

Instructions

Run any ExtendScript in the open After Effects project and return its result. Write the body of a function: use return to send data back (objects/arrays are JSON-serialized). Helpers: KAI.comp(nameOrId), KAI.layer(comp, nameOrIndex), KAI.prop(layerOrGroup, "ADBE Transform Group/ADBE Position"), KAI.find(name, kind), KAI.walk(group, {onlyChanged, filter}), KAI.layerInfo(layer), KAI.itemInfo(item). ARGS holds the args object. Edits are wrapped in one Undo group named by undo_name (pass it whenever the script changes the project).

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

Input Schema

NameRequiredDescriptionDefault
argsNo
codeYesExtendScript function body
undo_nameNoUndo group name; required for scripts that modify the project
timeout_secNo
expected_projectNoProject guard: refuse to run unless the open project path contains this text (e.g. the .aep file name). Use it for every edit to a client project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does substantial work: it discloses that edits are collapsed into a single Undo group, that return values are JSON-serialised, and that a project path guard can refuse execution. Remaining gaps are error handling, timeout behaviour and what happens on script failure, so it is strong but not complete for an arbitrary-code execution tool.

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?

Front-loaded with the core action and return contract, then the calling convention, then the helper catalogue, then the mutation safety rules. The helper list is dense but each entry is actionable for writing code; the closing sentences on undo_name and expected_project partly duplicate the schema descriptions, which is the only wasted space.

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 an arbitrary-code-execution tool with no annotations and no output schema, the description covers the two things an agent could not infer: the function-body calling convention and the return serialisation. The unexplained timeout_sec and absent failure/error semantics keep it from being fully complete.

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

Parameters4/5

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

At 60% schema coverage the description meaningfully compensates: it explains the code parameter as 'the body of a function' with `return` semantics, and that 'ARGS holds the args object', which the schema leaves as an untyped free-form object. undo_name and expected_project are reinforced but largely restate the schema; timeout_sec is never explained anywhere, which is the one real hole.

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

Purpose4/5

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

States a specific verb and resource ('Run any ExtendScript in the open After Effects project and return its result'), which frames it as the general escape hatch versus the task-specific siblings like ae_set, ae_comp or ae_layer. It stops short of explicitly naming those siblings, so the differentiation is implied by its generic scope rather than stated.

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

Usage Guidelines3/5

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

Gives real conditional guidance for two parameters ('pass undo_name whenever the script changes the project', 'Use it for every edit to a client project'), which is when-to-use advice at the parameter level. It never says when to prefer this over the specialised siblings or when not to reach for raw scripting, so the routing decision is left to the agent.

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