Skip to main content
Glama

Render video (background, chunked)

ae_render_video

Render After Effects compositions to MP4 as background chunked jobs with light, draft-preview, or final modes; re-render changed ranges and poll job status.

Instructions

Render a comp to MP4 in the BACKGROUND. mode previa = Draft Settings in one chunk to SEE a change fast; mode turbo = final render using the whole PC; redo [a,b] = re-render only the chunks that changed (same outDir). Default mode leve = the studio's render that keeps the PC usable: aerender in chunks (default 30 s; 15 s for Advanced 3D; chunkSec 10 for heavy blur/video; never under 5 s, opening aerender alone costs ~21 s) with multi-frame rendering on, up to 2 at once at BelowNormal priority with 8 threads left free and a RAM gate (one at a time while a process named in TUIFT_GAME_PROCESSES runs), -mem_usage 20 30, chunks joined without re-encoding and tagged BT.709, optional audio mux with loudness read-out, then checks for black and frozen stretches. Returns a job id at once — poll ae_render_status. Saves the project first. Avoid editing the project while it renders; keep bridge calls light.

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": {
      "comp": "<comp>"
    },
    "name": "ae_render_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
compYes
modeNoleve (default): light render that never locks the PC. previa: Draft Settings in ONE chunk for the range — to SEE a change in minutes, not to deliver. turbo: only for the final render when nobody is using the PC — Best Settings, more memory, normal priority, chunks 2× longer.
redoNo[start, end] seconds that CHANGED. With the same outDir, range and chunkSec of the previous job, only the chunks touching this interval are deleted and rendered again; the rest is reused and the master is rejoined.
audioNoFinal mix (wav) to mux into the MP4.
rangeNo[start, end] seconds; default work area.
outDirNoOutput folder (default: new folder per job under the temp work dir). Always a NEW folder per video.
chunkSecNoChunk length in seconds.
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.
redoCenaNoSame as redo, by scene name from tuift.cena: 'S03', 'S03_PROVA' or a list. Same outDir, range and chunkSec of the previous job.
softwareNoMulti-frame rendering off for the whole job (~5x slower). Not needed for failures: a chunk that fails is retried without MFR on its own. Use only with redo for a stretch that came out black.
outputModuleNoOutput module template (default 'H.264 - Match Render Settings - 40 Mbps').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

The annotations only declare destructiveHint=false, so the description carries most of the burden and does so: it discloses the asynchronous contract ("Returns a job id at once — poll ae_render_status"), a side effect ("Saves the project first"), resource gates (BelowNormal priority, 8 threads free, RAM gate, one-at-a-time while a process in TUIFT_GAME_PROCESSES runs), post-render QA (black/frozen checks), and output tagging (BT.709, non-re-encoded join, optional loudness read-out). Nothing contradicts destructiveHint=false; redo only deletes prior chunk files under the same outDir, which is scoped and explained.

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

Conciseness3/5

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

The opening clause front-loads the core action and the mode glossary is useful, but the middle sentence is a single enormous run-on packing aerender cost estimates, thread counts, -mem_usage flags and priority levels. Some of that is genuine routing value, but the lack of structure makes critical guidance (which mode to pick) compete with implementation trivia.

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?

For an 11-parameter async render tool with no output schema, the description covers everything an agent needs: what is produced (MP4, BT.709, optional audio mux, QA checks), what is returned (a job id) and how to follow up (ae_render_status). It also warns about concurrent edits during the job, which closes the main failure mode.

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 91%, so the baseline is 3, but the description adds genuine meaning on top: chunkSec defaults and floor (30 s, 15 s for Advanced 3D, 10 for heavy blur/video, never under 5 s with a stated reason), redo requiring the same outDir/range/chunkSec as the previous job, and the leve/turbo trade-off in memory and priority. It does not gloss outputModule templates or the instance resolution, which the schema already handles.

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?

"Render a comp to MP4 in the BACKGROUND" gives a specific verb, resource and execution model, and the mode glossary (previa/turbo/leve/redo) lets an agent distinguish the fast preview path from the final-delivery path without opening the schema. It also signals the relationship to siblings by naming ae_render_status for polling and ae_render_frame is implicitly excluded by the chunked/background framing.

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?

Every mode carries an explicit when-to-use condition: previa "to SEE a change in minutes, not to deliver", turbo "only for the final render when nobody is using the PC", leve as the default that keeps the PC usable, and redo for stretches that changed. It adds an exclusion ("/not needed for failures: a chunk that fails is retried without MFR") and an operational constraint ("Avoid editing the project while it renders").

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