Skip to main content
Glama

Render frame

ae_render_frame

Render one or more After Effects frames to PNG for visual verification of edits, with optional contact sheets and numeric analysis to catch off-frame elements and letterboxing.

Instructions

Render one or more frames to PNG. Use to visually verify edits. The agent's 'eyes' — pair with mutations for a visual feedback loop. Headless and deterministic. Pass time for one frame, or times for several in ONE call (motion checks): files land at _.png and are listed in frames. contactSheet tiles every frame into one labelled PNG (_sheet.png) so a motion check is one image; analyze measures each capture (uniform edge bands = black bars / transparent margins, content bounds, coverage) so off-frame elements and letterboxing are caught numerically. In color-managed projects (workingSpace != None) the capture applies AE's own display transform via a transient OCIO Display Transform adjustment layer, and the PNG comes back viewer-accurate and sRGB-tagged. Where that layer cannot be used — read-only mode, an AE without the OCIO effect, or a failed capture calibration — the result falls back to a pure-math ACES conversion or to raw values with an explicit colorWarning; check colorPipeline / colorWarning on the response.

Input Schema

NameRequiredDescriptionDefault
timeNoTime in seconds to render. Give exactly one of `time` or `times`.
timesNoSeveral times in seconds, rendered in ONE call. Files are written as <outPath stem>_<index><ext> and reported in `frames` (index-aligned).
analyzeNoMeasure each capture: uniform bands at every edge (width + transparent/color — black bars, letterboxing, empty margins), the bounding box of non-background pixels, coverage, mean RGB. Reported per frame as `analysis` (measured on the capture before color conversion).
outPathYesAbsolute path to write the PNG. Parent directory is created if missing. With `times`, used as the naming stem for every frame.
instanceNoAfter Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live.
returnImageNoAttach the result as an image in the tool response (the contact sheet when one was made, otherwise the first frame), downscaled to fit `previewMaxSide`. Use this to SEE the frame yourself instead of only getting a file path. Default true.
colorManagedNo'auto' (default): detect the working space and return a viewer-accurate, 8-bit sRGB-tagged PNG. 'off': raw legacy output (16-bit, untagged, working-space values — dark/wrong-looking in color-managed projects).
compNameOrIdYesComposition name or numeric item id.
contactSheetNoTile all rendered frames into ONE labelled PNG (#index + time above each tile). Pass {} for defaults.
previewMaxSideNoLongest side of the attached preview image in px (default 1024).
useDisplayStartTimeNoIf true, times are interpreted relative to comp.displayStartTime. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations only carry destructiveHint=false; the description shouldered the rest and does well on execution traits (headless, deterministic, file naming, contact-sheet defaults). The color-management section is unusually candid about fallbacks and the `colorWarning` escape hatch. However, it omits cost/latency expectations for multi-frame renders up to 32 items and says nothing about mutation of disk state beyond created parent directories.

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?

Purpose is front-loaded in the first clause, and each subsequent sentence covers a distinct decision (single vs multi-frame, contact sheet, analysis, color pipeline). It is a single dense paragraph of ~150 words that would scan faster as a short list, and the color-management sentence is long enough to bury its actionable tail.

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

Completeness5/5

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

With 11 parameters, a nested object, and no output schema, the description carries the response contract itself: it names `frames`, `analysis`, `colorPipeline`, and `colorWarning`, and explains what lands on disk. An agent has everything needed to call it correctly and interpret what comes back.

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 the baseline is 3; the description still adds value by explaining the interaction between `time`/`times` (mutually exclusive, index-aligned output), how `outPath` doubles as a naming stem, and why `colorManaged: off` yields dark/wrong-looking results. These are behavioral consequences rather than restatements, though much of the per-parameter detail is already 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?

Opens with a specific verb+resource+output format ("Render one or more frames to PNG") and immediately frames the intent with a metaphor plus a concrete use ("visually verify edits", "pair with mutations for a visual feedback loop"). This clearly separates it from the sibling info/context tools, none of which produce pixels.

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

Usage Guidelines5/5

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

Explicit routing rules: use `time` for one frame, `times` for several in ONE call for motion checks, `contactSheet` when a motion check should be one image, `analyze` when you want numeric checks instead of eyeballing. It also states the pairing pattern (mutations + render = feedback loop), so an agent knows when to reach for it.

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