Skip to main content
Glama

eval_jsx

Executes ExtendScript code inside Adobe After Effects to automate compositions, layers, effects, and keyframes, returning JSON-serializable results and optionally grouping edits into an undo step.

Instructions

Run ExtendScript inside AE. code is a function body: use return to send back a value (plain objects/arrays/numbers/strings serialize to JSON). Helpers: AEB.comp(nameOrIndex), AEB.layer(comp, nameOrIndex), AEB.prop(layer, 'Transform/Position'), AEB.item(nameOrIndex). Pass undo_name to wrap the edit in an undo group.

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

Input Schema

NameRequiredDescriptionDefault
codeYes
timeoutNo
undo_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does add real value beyond the schema: it states that the code is a function body, that `return` supplies the result, and that only plain objects/arrays/numbers/strings serialize to JSON. However it omits that this executes arbitrary code with full project mutation power, says nothing about the timeout parameter's behavior, and gives no error/failure semantics.

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, then the return contract, then helper inventory, then the undo hint — a sensible information order with no filler sentences. The helper list is dense but each entry earns its place by telling the agent what APIs are pre-injected.

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 annotations and no output schema, the definition covers invocation and return serialization well but is incomplete on timeout semantics, failure behavior, and the safety implications of arbitrary mutation. An agent could call it correctly but not confidently predict edge cases.

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 0%, so the description must compensate, and it does well for `code` (function body, return, serialization, helper signatures) and `undo_name` (wraps the edit in an undo group). The `timeout` parameter is never mentioned in the description, leaving one of three parameters entirely undocumented in both schema and prose.

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?

The description opens with a specific verb and resource ('Run ExtendScript inside AE') and immediately scopes it as a raw scripting escape hatch, which is unmistakably distinct from the domain-specific siblings like set_property, get_property, or set_expression. An agent knows exactly what this tool does without opening the schema.

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 rather than stated: it explains how to write the code body and which helpers exist, but never says when to prefer this over a dedicated sibling such as set_property or layer_update, nor any caution about using it for bulk or destructive edits. No when-not guidance and no alternatives named.

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