Skip to main content
Glama

Run a .jsx file

run_script_file
Destructive

Execute an ExtendScript .jsx or .jsxbin file inside After Effects and return its final value for scripted automation.

Instructions

Execute an ExtendScript .jsx/.jsxbin file inside After Effects and return its final value.

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": {
      "path": "<path>"
    },
    "name": "run_script_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to the script file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the agent knows this is an unsafe write-capable operation; the description's main added value is that it returns the script's final value, which matters because no output schema exists. It stays silent on execution semantics an agent would want: synchronous blocking, error/exception behavior, whether project changes are undoable, and that the script runs unsandboxed with full AE privileges.

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?

A single front-loaded sentence with the action, the accepted file types, the host application, and the return contract — no filler. It is arguably slightly terse for a high-risk execution primitive, but nothing is wasted.

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 an arbitrary-code-execution tool with no output schema, the definition covers the essentials (what runs, where, what comes back) but omits how failures surface and whether side effects are reversible. Those omissions are the main gap given the destructive annotation.

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?

With one parameter at 100% schema coverage, the schema already documents 'path' as an absolute path to the script file, so baseline 3 applies. The description adds only a modest amount by naming the accepted extensions (.jsx/.jsxbin), which the schema does not.

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 description gives a specific verb ('Execute') and resource (an ExtendScript .jsx/.jsxbin file) plus the environment (After Effects) and the return behavior. It implicitly separates itself from the sibling run_script by requiring a file path rather than inline code, though it never names or contrasts that sibling explicitly.

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 only implied: an agent can infer 'use this when the script already exists as a file' from the .jsx/.jsxbin phrasing and the required absolute path. There is no explicit when-to-use versus run_script, no preconditions (trust prompt, scripting enabled), and no when-not guidance.

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