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

Adobe After Effects + Premiere Pro MCP Server

by kai217

il_run_script

Run custom ExtendScript in Illustrator and return the result, with helpers for documents, layers, colors, fonts, and exports. Use it to automate vector edits and queries.

Instructions

Run any ExtendScript in Illustrator and return its result (body of a function; return sends data back). Helpers: KAI.doc(ref), KAI.docInfo(doc), KAI.itemInfo(item), KAI.find(doc, name|/re/, layer), KAI.item(...), KAI.layer(doc, "A/B"), KAI.color("#hex"|[r,g,b]), KAI.font(name), KAI.bounds(item), KAI.clipBounds(item) (what you see of a clipped group), KAI.exportPNG(doc, file, artboard, scale), KAI.exportSVG(...). ARGS holds args. Alerts are suppressed during the run. Illustrator has no scripted undo groups: save a copy (il_save version) before big edits.

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

Input Schema

NameRequiredDescriptionDefault
argsNo
codeYes
timeout_secNo
expected_projectNoDocument guard: refuse to run unless the active document path contains this text. Use it for every edit to a client file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses result-passing semantics, that ARGS feeds arguments, that alerts are suppressed during execution, and the critical limitation that Illustrator has no scripted undo groups. It omits timeout behavior, error/failure reporting, and which document the script executes against, which are the remaining behavioral gaps.

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 contract, then the helper API surface, then the safety warning. The helper enumeration is long but each entry is functional reference material for writing scripts; the only minor waste is that it is a dense run-on list rather than separated from the call contract.

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 high-power, no-annotation, no-output-schema script executor, the definition supplies the essentials: how results come back, the helper library, the argument channel, the doc guard purpose, and the undo caveat. It falls short of complete by not covering timeout semantics or how script errors surface to the caller.

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 description coverage is 25%, with only expected_project documented in the schema. The description compensates for two of the four parameters — explaining that code is a function body and that args arrive via ARGS — but timeout_sec is undocumented in both schema and description, leaving a real gap.

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?

The definition opens with a specific verb and resource ('Run any ExtendScript in Illustrator') and states the return contract ('body of a function; `return` sends data back'). It is clearly the raw escape hatch among more purpose-specific siblings like il_add or il_save, but it never names or references any of them, so sibling differentiation is implicit 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?

Usage is implied by 'Run any ExtendScript' as a catch-all executor, and there is one concrete procedural guideline ('save a copy (il_save version) before big edits'). However, it never says when to prefer a purpose-built sibling over hand-written script, nor when this tool should be avoided.

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