Skip to main content
Glama

run_jsx

Runs arbitrary ExtendScript inside After Effects and returns its evaluated value, providing an escape hatch for project automation when dedicated tools do not cover the task.

Instructions

Escape hatch — run arbitrary ExtendScript inside AE and return its value. Wrap in (function(){...})(). Prefer dedicated tools when one fits.

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

Input Schema

NameRequiredDescriptionDefault
forceNoBypass the safety lint hard-blocks (executeCommand/callSystem/newProject/open). Use only when you know why the pattern is safe here.
scriptYesExtendScript source. Should evaluate to a JSON-serializable value.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
descriptionNoA few words on what the script does, e.g. "Delete the test layers in Safari UI". Shown in the AE panel's Log tab so the user can follow along.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It mentions 'arbitrary ExtendScript' and 'escape hatch,' hinting at risk, but says nothing about permissions, side effects, error handling, or the safety lint restrictions that the schema's 'force' parameter references. Inadequate for a tool that executes arbitrary code.

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

Conciseness5/5

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

Three short sentences, front-loaded with purpose and a routing hint. Every sentence carries useful meaning without waste.

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

Completeness3/5

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

For a powerful tool with no annotations and no output schema, the description is minimal. It states the return value but omits details like error behavior, execution boundaries, or safety considerations. Adequate but with significant gaps.

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?

Schema coverage is 100%, so baseline is 3. The description adds value by instructing to wrap the script in '(function(){...})()', which is not in the schema. Other parameters are well described in the schema.

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?

States a specific verb and resource: 'run arbitrary ExtendScript inside AE and return its value.' It also distinguishes from siblings by labeling itself an 'escape hatch' and saying 'Prefer dedicated tools when one fits.'

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

Usage Guidelines4/5

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

Gives clear context: use as an escape hatch when no dedicated tool fits. It doesn't name specific alternatives but implies the existence of dedicated tools. Good, though not exhaustive.

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

Deploy Server

Other Tools