Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

You are operating an After Effects project through the AE Portal MCP bridge. Treat AE as a direct extension of your reasoning: read project state with tools, mutate it with tools, preserve the user's design.

Workflow rules

  1. Always start with get_project_map mode="light" when entering a new project so you know the comp tree, layer counts, fonts, fps, and the active comp. It's <500ms — cheap. Only deepen with mode="deep" or mode="comp" when you actually need transform keyframes, effect stacks, masks, shape contents, text animators, or layer styles.

  2. Preserve the user's design. Do not change positions, colors, sizes, fonts, or layer order unless the user explicitly asks to. If a request is ambiguous, ask before mutating visual state.

  3. Respect layer order. New layers go where AE creates them by default; if you must reorder, name what you moved and why. Never reshuffle a comp "for cleanliness."

Multiple After Effects instances

This server auto-discovers every running AE that has the AE Portal panel open (e.g. AE 2025 and AE 2026 at once). When more than one is connected:

  • Call list_instances to see them — each has an id which is the AE year ("2025", "2026").

  • Pass instance on any tool to target one, e.g. set_text({ ..., instance: "2026" }). When only one AE is connected, instance is optional and routes automatically.

  • If two are connected and you omit instance, the call is REFUSED (it will not guess) — read the error, then pass instance or call use_instance to set a default target.

  • use_instance sets a sticky default; a per-call instance always overrides it.

  • Known limit: two simultaneously-open AEs of the SAME major version (e.g. two 2026 windows) collide on the discovery id (the AE year) — the second one replaces the first in the pool. One AE per major version is supported at a time.

  • list_instances and ping may include hostResponsive (bool) — true when the panel's AE host answered a liveness probe within the last 10s. connected only means the socket is open; a hung or modal-blocked AE can still show connected:true with hostResponsive:false. A panel that doesn't report this yet simply omits the field — don't infer anything from its absence.

Easing rules (NEVER F9 / 33% unless user explicitly asks)

When the user asks for "nice easing", "ease in", "ease out", "snap", "snappy", or similar, use set_easing with these defaults:

  • mode="in" — animation entering: first key LINEAR-out, last key BEZIER-in, influence 75

  • mode="out" — animation leaving: first key BEZIER-out 75, last key LINEAR-in

  • mode="inout" — to-and-from / snap: both ends BEZIER influence 75

Influence range 70–80 (default 75). Only use lower values if the user asks for "slow", "smooth", or specifies a number. Only use the AE default of 33% / F9 if the user explicitly says so.

Editing existing keyframes — preserve easing

When the user asks you to change keyframe values (not easing), the easing must stay the same. Use this pattern:

  1. Call get_easing first to capture current key times + easing.

  2. Call set_property with time set to an existing keyframe's time and the new value. When a property already has keyframes, set_property writes at that time without touching interpolation.

  3. Do not call set_easing afterward unless the user asked to change the easing.

Only call set_easing when the user explicitly asks for new easing.

Text + shape detail

When working with text or shape layers, fetch detail with get_project_map mode="comp" comp=<name> (this includes shape contents, text animators, masks, layer styles, and expressions). Don't guess matchNames — list_effects, get_easing, or the comp deep map will give you exact names.

VO / caption work

If the user asks to time captions, sync to VO, or position layers to spoken words:

  1. Find the audio layer (light map flags hasAudio).

  2. Call whisper_transcribe on it. Words come back with frameStart/frameEnd already aligned to the comp's fps.

  3. Use those frames to place markers, set keyframes, or trim layers. Pair with the project's easing rule above when animating each word.

Project hygiene

  • After significant changes (new comps, big rework, batch imports), suggest version_up so alts are safe. Don't auto-call it — just say "want me to version_up?"

  • If layer names are unclear (e.g. "Shape Layer 12", "Text 4 (3)"), call suggest_renames and propose them to the user before applying with rename_layers.

Tool selection

  • Use dedicated tools whenever one fits. run_jsx is the escape hatch — only when no dedicated tool exists. If you find yourself reaching for run_jsx repeatedly for the same task, mention it: "Want me to add a dedicated tool for X?"

  • For property paths, prefer matchNames ("ADBE Position", "ADBE Effect Parade.ADBE Gaussian Blur 2.ADBE Blurriness") over display names — they're locale-stable.

  • For comp/layer references, name strings work but numeric indices/ids are unambiguous.

Fast knowledge lookups (use these before guessing)

The server bundles parsed indices of the knowledge base — zero-latency in-memory lookups, faster than reading a resource:

  • lookup_effect(query) — 213 effect matchNames searchable by displayName / matchName / category. Call this BEFORE apply_effect when unsure of the exact name. Example: query "blur" returns Gaussian Blur, Box Blur, Motion Blur, etc.

  • lookup_property(query) — 108 property matchNames (transforms, masks, layer styles, text, shapes, effects, 3D extrusion). Returns matchName + displayName + access path.

  • lookup_expression(query) — 188 expression snippets (wiggle/loop/bounce variants, Dan Ebberts patterns, effect templates, operation templates). Returns ready-to-paste code.

  • knowledge_search(query) — full-text search over the 18 knowledge .md files when the structured lookups don't fit. Returns file + line + snippet.

Pull these instead of guessing matchNames or hand-writing expressions you don't have memorized.

Resources

The server exposes MCP resources you can read on demand:

  • aeportal://knowledge/<file> — the bundled knowledge base (effect matchnames, property matchnames, expressions library, motion design concepts, troubleshooting, etc.). Pull these before guessing.

Verifying motion, not just a pose

  • render_frame captures one instant — good for static checks (typography, color, layout).

  • For anything that MOVES (easing, timing, a trim-path draw-on, a counter, a text animator), call render_preview_strip instead: it samples several frames evenly across a time range into one contact-sheet image, so you can actually judge the motion instead of guessing from a single frame.

Rendering (AE 2026 quirks)

  • OutputModule API in AE 2026 uses setSettings / setSetting (NOT applySettings).

  • Format is read-only via setSettings → "Property is read-only". You CANNOT switch codec/container by script. The only way to change codec is outputModule.applyTemplate("<name>") with a template that already has the desired format.

  • saveAsTemplate(name) captures the current OM as a named template — useful once the user has manually configured a codec once.

  • Audio off IS scriptable: om.setSettings({"Output Audio": "Off"}) (after the template is applied).

  • By common convention, a "High Quality" output module template maps to Apple ProRes 422 (.mov) — verify the template exists on this install before relying on it. Rule of thumb for ProRes 422 no-audio: outputModuleTemplate: "High Quality" + om.setSettings({"Output Audio":"Off"}) + set om.file last (template application can reset the path).

Render queue — blocking behavior

  • start_render calls renderQueue.render() which is synchronous in ExtendScript — the bridge times out at 60s but AE keeps rendering. Don't retry render_queue_status (also blocked).

  • To track progress, poll the filesystem with Bash for the expected output files (size + stable mtime). Once stable, AE will be responsive again.

  • Use render_queue_add_batch to queue many comps in one call with a shared template + outputDir; filenames derive from comp names.

Multiple AE versions (2025 + 2026)

  • The panel auto-binds a port per AE version (2025 → 38967, 2026 → 38968); this server connects to both. When only one AE has the panel open, commands route to it automatically — no action needed.

  • When both are connected, call list_instances to see them, then use_instance ("2025" or "2026") to pick the target. The choice is per-session, so two parallel Claude sessions can drive the two AEs concurrently.

  • If unset with both connected, commands default to the newest (2026).

Hard limits (not scriptable in After Effects)

These are not tool gaps — ExtendScript itself cannot do them, on any AE version. Don't promise them to the user; tell them to do it by hand in the AE UI. A tool call that hits one of these returns a clear error instead of silently failing or faking a result.

  • Roto Brush / Refine Edge strokes — stroke data is CUSTOM_VALUE (an opaque ARB blob); it cannot be read or set by script.

  • Paint / brush strokes — same ARB limitation as Roto Brush; stroke paths aren't scriptable.

  • CUSTOM_VALUE effect params — Curves' curve, Colorama's output gradients/cycles, gradient-editor and histogram widgets: not readable or writable. For an animatable gradient, use the documented Colorama B/W + phase workaround instead.

  • Output Module codec / format / channels — Format is read-only on AE 2026; scripts can only applyTemplate(existingName) or saveAsTemplate(name). A specific codec (e.g. ProRes 4444 + alpha) must be built once by hand in the OM dialog and saved as a template.

  • Motion tracker / camera tracker initiation — a track cannot be started by script (once a track has run, its point data is readable).

  • Grid settings — grid spacing/subdivisions aren't scriptable. Guides ARE (Item.addGuide / the set_guides-style APIs).

  • Per-footage color-profile assignment ("Interpret Footage > Color Management > Assign Profile") — not exposed to script.

  • Essential Graphics panel contents — you can add properties to a MOGRT (addToMotionGraphicsTemplate) and export it, but you cannot read back or reorder the EGP panel's groups/comments.

Failure modes

  • Panel offline → tool returns: "AE Portal panel is not connected. In After Effects: Window > Extensions > AE Portal." Ask the user to open the panel.

  • JSX threw → check run_jsx with a tiny test, or reload_host (re-evaluates the host script from disk after edits).

  • Deep map slow on huge projects → use mode="comp" for one comp, or set maxLayers.

Be terse. Confirm before mutating visual state, move fast on read operations, and prefer one well-chosen tool call over many.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pingA

Health check — confirms the panel is connected and AE is responsive. Returns AE version, build, project file, uptime. Use first when unsure.

run_jsxA

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

get_project_mapA

Project map. mode="light" (default, <500ms): comp tree, layer counts, fonts, fps, durations, active comp, basic per-layer info (type, parent, track matte, audio presence, text content). mode="deep": adds per-layer transform keyframes + easing, full effect stacks with property values + expressions, parent chains, masks, layer styles, shape contents (recursive groups/paths/fills/strokes/repeaters/trim), text animators (range selectors + animator properties), comp + layer markers. mode="comp": same as deep but for a single comp by name/id (param: comp). Cheaper than full deep for big projects. Toggle off heavy parts with includeShapeContents/includeTextAnimators/includeMasks/includeLayerStyles. Every comp and layer carries a stable numeric id — pass it back to any tool as { id: N } (comp or layer param) for duplicate-name-safe addressing. Start with light; only deep-map when you need keyframes/values/structure.

get_selectionA

Returns active comp, currently selected timeline layers, and project panel selection. Cheap — call before mutations to know what user has selected.

list_compositionsA

Quick list of all comps in the project — id, name, dimensions, fps, duration. Lighter than get_project_map.

list_effectsA

List of all installed effects (display name, matchName, category). Optional substring filter. Use to find correct matchName before apply_effect.

set_easingA

Apply nice easing on a property's keyframes. Modes: "in" (linear→bezier-in) for animation-in; "out" (bezier-out→linear) for animation-out; "inout" (bezier on both ends) for snap-in-and-out. Default influence 75 (range 70–80 — DO NOT use AE's default 33%/F9 unless the user explicitly asks). range="all" applies to first/last (and middle, for inout); range="selected" uses the keyframes selected in AE's timeline.

get_easingA

Read keyframes + easing for one property: each key's time/frame/value/inInterp/outInterp/easeIn/easeOut. Use this to preserve easing when changing keyframe values.

apply_effectA

Apply an effect to one or more layers. effect accepts display name ("Gaussian Blur"), matchName ("ADBE Gaussian Blur 2"), or pseudo-effect path. Set initial property values via properties (key = property display name or matchName). If unsure of the name, call lookup_effect(query) FIRST — it's an in-memory lookup of 213 effects, faster than list_effects (which queries AE).

add_solidA

Add a solid layer. Defaults to comp dimensions and full duration.

add_nullC

Add a null object. Useful as a parent rig.

add_textC

Add a text layer. Optional font/fontSize/fillColor/justification/position.

add_shapeB

Add an empty shape layer. Add contents afterwards via run_jsx or set_property.

add_adjustmentB

Add an adjustment layer at comp size and full duration.

delete_layerA

Delete one or more layers. When names may collide, address by stable id ({ id: N }) so the right layer is hit.

duplicate_layerC

Duplicate one or more layers.

set_propertyA

Set a property's value. If the property already has keyframes, this sets/creates a keyframe at time (or current comp time). Otherwise it sets the constant value. To preserve easing on existing keyframes, call get_easing first, change the value, and easing is kept automatically (we set the value at the same time as the existing key). comp/layer accept { id: N } for duplicate-name-safe stable-id addressing.

add_keyframeB

Add a keyframe to a property at the given time. Defaults the value to the property's value at that time, so easing stays clean. Pair with set_easing afterward.

parent_layersB

Set parent of one or more child layers. Pass parent=null to unparent.

set_track_matteA

Set track matte type on a layer. Reads from the layer ABOVE it (AE's standard rule). type: NONE | ALPHA | ALPHA_INVERTED | LUMA | LUMA_INVERTED.

set_active_compB

Open a comp in the viewer (sets the active comp).

set_selected_layersB

Set the timeline selection. Pass an array of layer indices/names — clears existing selection first.

create_compositionB

Create a new composition. Defaults: 1920x1080, 30fps, 10s, pixelAspect 1.

open_projectC

Open a .aep project file.

close_projectC

Close the current project. save: "save" | "discard" | "prompt" (default).

analyze_unusedA

Find project items (footage, comps) not used in any composition. Read-only — returns suggestions for cleanup.

list_markersA

List markers on a layer (pass layer) or on the comp itself (omit layer). Returns time, frame, comment, duration, label.

add_markerC

Add a marker on a layer or on the comp. Time can be seconds, or pass frame. Optional comment, duration, label (0–16, AE's color labels).

add_markers_batchB

Add many markers at once. markers: [{time|frame, comment, duration?, label?}].

delete_markerB

Delete a marker by index (1-based), or by nearest time/frame.

set_timeC

Move the playhead. Provide either time (seconds) or frame.

suggest_renamesA

Inspect a comp and suggest cleaner layer names: text → content, shapes → "line"/"box", AV → source name. Skips already-good names. Read-only.

rename_layersC

Apply a rename map. renames is an array of {index, name}.

precomposeC

Precompose the given layers into a new comp. moveAllAttributes defaults true.

import_filesB

Import one or more files. Optional intoFolder creates a new project folder. Set sequence=true for image sequences.

import_folderB

Import a folder of media. Walks recursively by default. extensions filter defaults to common AE-friendly types. Files import into a project bin named after the folder.

list_installed_scriptsB

List scripts present in installed AE app(s) — Scripts/, ScriptUI Panels/, Startup/, and User Presets. Read-only filesystem scan.

list_installed_extensionsA

List CEP extensions installed system-wide and per-user. Read-only filesystem scan.

list_installed_pluginsA

List native plugins installed in the AE app(s) and Adobe Common MediaCore. Read-only filesystem scan.

replace_footageA

Replace a footage item's underlying file. Pass either itemId or itemName. Composition usages auto-update.

save_projectB

Save the project. If path is given, saves a copy at path; otherwise saves in place.

version_upA

Save the project as the next version (name_v01 → _v02, padding preserved). Suggest after big changes so alts are safe.

whisper_transcribeA

Transcribe a VO/audio layer with word-level timestamps, frame-aligned to the comp's frame rate. Pass either a layer (name/index in active comp) or a path to an audio file. Requires the whisper CLI on PATH (or set WHISPER_CMD). Returns words: [{word, time, start, end, frame, frameStart, frameEnd}].

reload_hostA

Re-evaluate the panel's host JSX from disk. Use after editing extension/host/*.jsx without restarting AE.

render_frameA

Render the active comp (or specified comp) at a given time, return as a PNG image content block. Pass time (seconds) or frame; defaults to current playhead. THE primary way to "see" what AE looks like — call this after visual mutations to verify results.

render_preview_stripA

Render N frames evenly across [start,end] into a single contact-sheet image so motion can be judged, not just one pose. Use this instead of repeated render_frame calls when checking easing, timing, a trim-path draw-on, a counter, or any change that only reads over time. Omit start/end to cover the comp's work area; omit comp for the active comp.

set_expressionA

Set an expression on a property. Pass empty string to remove. Auto-enables if non-empty.

remove_expressionC

Remove the expression from a property and disable expression-mode.

toggle_expressionA

Toggle expressionEnabled on a property without losing the expression text.

check_expression_errorsA

Sweep for BROKEN expressions — every property whose expression failed to evaluate (non-empty expressionError; AE auto-disables these). Pass comp to scan one comp, omit to scan the whole project. Returns { errorCount, errors:[{comp, layer, prop, error, enabled}] }. set_expression already reports an error for the property it just set; use this to sweep everything or re-verify after edits.

apply_expression_presetC

Apply a preset expression. Library: wiggle({freq, amp}) — random jitter; loopOut({type: "cycle"|"pingpong"|"continue"|"offset", numKeyframes}); loopIn({...}); bounce({amp, freq, decay}) — physics-style bounce after last keyframe; smooth({width, samples}) — averaging smooth; time({rate, offset}) — value drives by time; valueAtTime({offset}) — read this prop at offset time; posterizeTime({rate}) — sample-and-hold timing; inertialBounce() — ease-out bounce; autoFade({duration}) — opacity fade in/out at layer in/out points; pingPong() — short for loopOut pingpong.

add_expression_controlA

Add an expression control effect (Slider / Checkbox / Color / Point / 3D Point / Angle / Layer) to a layer — the backbone of a rig. Optionally rename it (name — this also becomes the effect("...") accessor name), set its initial value (value), and AUTO-LINK it: pass linkTo {layer, prop} to point that property's expression at this control. The link is force-evaluated and its expressionError is returned inline (empty string = it evaluated cleanly). The link target must be in the same comp as the control for it to resolve. Returns { effectName, type, valueStream, valueSet, linkedTo, expression, expressionError, linkEnabled }.

link_propertiesA

One-call expression link: set the DEST property's expression to reference the SOURCE property. The source accessor is auto-derived for the standard transforms (position/scale/rotation/opacity/anchorPoint/orientation/x|yRotation) and for DIRECT effect params (effect("Effect")("Param")). For anything not auto-derivable (masks, nested shape/effect params) pass expressionTemplate explicitly — the handler will error rather than emit a link that silently fails. The result is force-evaluated and its expressionError returned inline. Returns { destLayer, destProp, expression, expressionError, enabled, derived }.

shift_keyframesB

Shift all keyframes on a property by a delta. Positive moves later. Provide deltaSeconds OR deltaFrames OR delta (seconds).

scale_keyframesA

Stretch/squash keyframes in time around the first keyframe. factor>1 expands (slower), <1 compresses (faster).

reverse_keyframesB

Reverse keyframe order in time. Mirrors easing too (in becomes out).

distribute_keyframes_evenlyA

Reposition middle keyframes so they're evenly spaced between the first and last keys. Values unchanged.

copy_keyframesA

Copy every keyframe from a source property to a destination property with FULL fidelity — time (optionally shifted by timeOffset), value, interpolation type (in/out), temporal ease (correct per-property array length), and spatial tangents + auto-bezier on spatial props (Position/Anchor Point). Dest can be in the same comp or another (destComp). clearExisting removes the dest's existing keyframes first. Source and dest value dimensionality must match (2D→2D, 3D→3D, scalar→scalar) or the call errors. Returns { copied, destLayer, destProp, destComp, spatial, easeArrayLength, timeOffset, clearedExisting }.

sequence_layersB

Stagger layers by setting their startTime to startTime + index*offset. Provide offsetSeconds OR offsetFrames. Optional startTime overrides the first layer's start.

time_stretchB

Set layer.stretch percentage. 100 = original, 50 = 2x speed, 200 = half speed.

time_remap_enableA

Enable/disable time remapping on an AVLayer. Required before setting time-remap keyframes.

freeze_frame_atA

Freeze a layer to display a single frame across its duration. Enables time remapping and sets two HOLD keys.

center_anchorA

Move anchor point to a named position on the layer. Compensates position (and all keyframes) so the layer doesn't jump. anchor: "center" (default), "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right". Use "bottom" for squash-and-stretch on bouncing/landing objects.

fit_to_compA

Scale layers to fit the comp. mode: cover (fills, may crop), contain (fits inside, may letterbox), fill (stretches non-uniformly).

align_layersB

Align layers to an edge. edge: left|right|top|bottom|center-h|center-v. reference: "comp" (default) | "first" | "last" | layer name/index.

distribute_layersC

Evenly distribute layers between first and last on the chosen axis.

match_sizeB

Scale target so its rendered size matches source's rendered size.

match_positionC

Set target's position to match source's position.

align_to_targetsA

Batch paired alignment: center each layer's comp-space visual center onto its target layer's center, plus an optional offset. Unlike align_layers (own-transform only), this walks the FULL parent chain, so labels/numbers parented to scaled or rotated nulls/buttons resolve to true comp coordinates and land correctly. Pair via pairs:[{layer,target}] or parallel layers[]+targets[]. offset [dx,dy] is comp px added to every target center (same offset on all pairs = uniform "normalize"). axis locks an axis (x/y/both). Solves each layer's LOCAL position from the comp-space target, so non-uniform/animated parent scale is handled exactly. Skips layers whose Position has an active expression. 2D layers only (3D/camera not projected). e.g. center "Num N" on "Key N" with offset [0,-23], then "Letters N" on "Key N" with [0,50].

set_textB

Replace the text content of a text layer (without recreating it).

set_text_styleC

Update text styling on an existing text layer. Any subset of font, fontSize, fillColor, strokeColor, strokeWidth, tracking, leading, applyFill, applyStroke, fauxBold, fauxItalic, allCaps, smallCaps, justification.

toggle_layer_stateA

Toggle (or set) a boolean-ish layer property in batch. prop: enabled|solo|shy|locked|threeDLayer|motionBlur|adjustmentLayer|guideLayer|collapseTransformation. If value provided, sets to that; otherwise toggles.

set_color_labelA

Set AE color label (0–16). Either pass project itemIds (footage/comps) OR comp+layers (timeline layers).

set_in_outC

Set a layer's in/out points. Either time (seconds) or frame for each.

set_layer_blend_modeB

Set blending mode. Common modes: NORMAL, MULTIPLY, SCREEN, OVERLAY, ADD, LIGHTEN, DARKEN, COLOR_DODGE, COLOR_BURN, SOFT_LIGHT, HARD_LIGHT, DIFFERENCE, EXCLUSION, HUE, SATURATION, COLOR, LUMINOSITY, ALPHA_ADD.

set_qualityC

Set layer quality: BEST | DRAFT | WIREFRAME.

split_layer_at_timeB

Split (razor) layers at the given time. Each layer is duplicated; original ends at time, duplicate starts at time.

set_work_areaC

Set comp work area in/out (seconds or frames).

set_work_area_to_selectionA

Set comp work area to span the in/out points of the currently selected layers.

trim_to_work_areaB

Trim the comp duration to its work area, shifting layers so work-area start becomes time 0.

add_cameraC

Add a camera. oneNode=true makes it free (no point of interest). Default position: comp center, 1777.78 back.

add_lightC

Add a light. type: PARALLEL | SPOT | POINT | AMBIENT.

apply_preset_ffxC

Apply a .ffx animation preset to a layer.

apply_mogrtC

Import a .mogrt motion graphics template into the comp at position/time.

render_queue_addB

Add a comp to the render queue. Optional outputPath (per first output module), templateName (render settings), outputModuleTemplate.

start_renderA

Start rendering the queue. Blocks AE until done — use render_queue_status to poll progress from another conversation.

render_queue_statusA

Read render queue status: items, status per item, output paths.

clear_render_queueB

Remove all items from the render queue.

list_om_templatesA

List Output Module templates available in AE (names you can pass as outputModuleTemplate). AE 2026 cannot script codec/Format changes — codec must come from a saved OM template.

list_rs_templatesA

List Render Settings templates available in AE (names you can pass as templateName to render_queue_add).

save_om_templateA

Save the currently-selected render queue item's OutputModule(1) settings as a new Output Module template. Use after manually configuring an OM in AE (e.g. ProRes 422 + audio off) so future renders can apply it by name via render_queue_add. Optional itemIndex (default: last queued item).

render_queue_add_batchA

Queue multiple comps in one call with the same Render Settings + Output Module template + output directory. Filename derives from comp name + optional suffix + .ext from template. Skips comps not found. Returns per-comp result.

reduce_projectA

Delete all unused project items (footage/comps with empty usedIn). Read analyze_unused first to preview.

consolidate_footageB

Merge duplicate footage items in the project. Returns count consolidated.

collect_filesA

AE has no scripted Collect Files API; this returns guidance. For real collect-files, use AE's File menu.

find_missing_footageB

List footage items currently flagged as missing (offline media).

undoA

Trigger AE's Undo (Cmd+Z equivalent). Use cautiously — undoes the last AE action regardless of source.

redoC

Trigger AE's Redo.

reveal_in_finderB

Open Finder with the layer's source file selected. Pass either path (filesystem path) or layer (in active comp).

reveal_project_in_finderC

Open Finder with the AE project file selected.

lookup_effectA

Fast lookup of AE effect matchNames (213 effects). Returns top matches by displayName / matchName / category. Use this BEFORE apply_effect when unsure of the exact name — it's faster than reading the whole knowledge resource.

lookup_propertyA

Fast lookup of AE property matchNames (108 properties: transforms, masks, layer styles, text, shape contents, 3D extrusion). Returns matchName + displayName + access path. Does NOT cover individual EFFECT parameters — for those use apply_effect's properties arg or a dotted display path like "Effects.Gaussian Blur.Blurriness".

lookup_expressionB

Fast lookup of expression snippets (188 entries: wiggle/loop/bounce variants, Dan Ebberts patterns, effect-templates, operation-templates). Returns ready-to-paste expression code.

knowledge_searchA

Full-text search across all 18 knowledge files (effect/property matchnames, expressions, layer methods, motion design concepts, scripting API reference, troubleshooting, AE features, keyboard shortcuts, etc.). Returns file + line + snippet. Use when none of the structured lookups fit.

get_recent_eventsA

Return events the panel has pushed since since (epoch ms; defaults to all buffered, max 100). Events: project_opened, comp_opened, selection_changed, items_changed, dirty_changed.

set_property_batchA

Set a property across MANY layers (or comps) in ONE undo step. Broadcast form: {comp?, layers, prop, value, time?} applies the same value to every listed layer. Targets form: {targets:[{comp?, layer, prop, value, time?}, ...]} for per-target values. Returns per-target {ok,error}. Use instead of calling set_property N times (stat-card / box-rig work).

batchA

Run many portal tools in ONE round-trip and ONE undo group (atomic: a single Undo reverts the whole batch). stopOnError (default true) halts at the first failing op. Only JSX-routed mutation/read tools are allowed — not render_frame, whisper, import_folder, run_jsx, reload_host, or batch itself. Returns per-op results plus appliedCount/failedAt.

get_layer_boundsA

Read a layer's rendered bounds at a time: sourceRectAtTime (left/top/width/height in layer space) + Position/Anchor/Scale + the comp-space visual center. includeExtents:true also returns the on-screen bounding box (corners transformed to comp space). The measurement primitive behind responsive-box and counter-centering rigs.

describe_layerA

Full snapshot of ONE layer: type, enabled/3D, in/out/startTime/stretch, blend mode, track matte, parent chain, transform (with keyframes), effects, markers, source rect — optionally masks/shapeContents/textAnimators. Cheaper than deep-mapping a whole comp when you only need one layer before a targeted edit.

sample_propertyA

Sample a property's VALUE over time (post-expression) as a {time,frame,value} series. Verify expression-driven motion — counters, wiggle, slider-driven box growth — numerically without rendering pixels. Defaults to the layer in→out range at 1-frame steps; pass step (seconds) or frames (sample count). Capped at 500 samples.

markers_to_keyframesA

Turn timed markers into animation — closes the caption pipeline after whisper_transcribe + add_markers_batch. mode="inout" (default): set each target layer's in/out points to consecutive marker times (per-word/per-line reveals). mode="keyframe": drop a key on prop at every marker time (value from value, or the sampled current value), optionally HOLD-interpolated. Markers read from markerLayer, else comp markers.

audit_fontsA

Audit fonts across the project (or one comp): which fonts are used, by which text layers, and which appear SUBSTITUTED/missing (requested PostScript name ≠ resolved font). A pre-render and handoff safety check. Returns missingFonts[] + a per-font usage map.

get_pathA

Read a mask or shape path's geometry. Target a mask via mask (name or 1-based index) OR a shape-layer path via shapePath (a dotted display path like "Contents.Shape 1.Path", or an ADBE matchName resolving to / containing an "ADBE Vector Shape") / shapeIndex (1-based group index inside Contents). Pass time/frame to sample a keyframed path; otherwise the static value is read. Tangents are [x,y] RELATIVE to their vertex. Returns {vertices,inTangents,outTangents,closed,numKeys}.

set_pathA

Write a mask or shape path's geometry. Same target selector as get_path (mask / shapePath / shapeIndex). vertices is required (array of [x,y] in layer space). inTangents/outTangents are optional (each [x,y] relative to its vertex) and default to zero — straight corners — and must match the vertex count when given. closed defaults true. With time/frame the path is keyframed at that time; otherwise it is set statically (or keyed at the current time if the path is already keyframed). Returns a read-back {kind,mode,vertices,closed,numKeys}.

add_maskA

Create a mask on a layer. mode maps to MaskMode (add/subtract/intersect/difference/none; default add). shape is optional: an explicit {vertices,inTangents,outTangents,closed} OR a primitive {rect:[x,y,w,h]} / {ellipse:[x,y,w,h]} with a top-left origin (a 4-point rect or a 4-anchor bezier ellipse is generated). feather ([x,y] or a single number), expansion (px), and opacity (0-100) are optional. Returns {mask,index,mode,closed}.

watch_startA

Start watch mode (Stage A fidelity). Hooks view.onSync in AE — on every real edit the active comp is snapshotted (keyed by stable layer.id) and diffed. Detects: comp-wide layer add/delete; transform + Orientation value/keyframe changes; keyframe ease/interp changes; which key TIMES were deleted; effect param changes (keyed by index+matchName so rename/reorder is not misattributed); mask + shape-layer PATH point drags; and parenting / blend mode / in-out / enabled / text (font,size,text) / text-animator changes. Selection, solo, shy, view and scrub changes are filtered out. Use watch_get_log to retrieve entries.

watch_stopA

Stop watch mode and remove the onSync hook.

watch_get_logA

Get watch log entries since a given index (default 0). Returns { entries, total }. Each entry: { ts, comp, layer, prop, change, value?, old?, time? }. change values: "value" (static or effect-param change) | "key_add" (+ time,value) | "key_del" (+ count, times[] of removed key times) | "key_mod" (+ time, old, value) | "key_ease" (interp/temporal-ease change; + time, keyIndex) | "path_change" (mask/shape path point drag; + vertexCount; prop names the target e.g. "mask:Mask 1" or "shape#1") | "layer_add" (+ id, index) | "layer_del" (+ id) | "parent" | "blend" | "in_point" | "out_point" | "enabled" | "text" | "font" | "font_size" | "text_animator" (each with old/value) | "log_full" (cap reached).

watch_clearC

Clear the watch log.

watch_statusB

Returns { active, entries, rev, scope } — whether watch is running, how many entries are in the log, and the deep-diff scope ("selected" | "comp").

watch_get_replayA

Convert the current watch recording into an ordered batch of portal tool calls that reproduces what was done — feed the returned operations straight to the batch tool. Layer/comp targets use {id} addressing. Returns { operations:[{tool,args}], count, unmapped:[...] } (plus deltas[] when relative:true). Mapping: value edits → set_property; key_add/key_mod → add_keyframe; path_change → set_path; parent → parent_layers; blend → set_layer_blend_mode; in_point/out_point → set_in_out; enabled → toggle_layer_state; text → set_text; layer_del → delete_layer. Non-reproducible edits (layer_add, key_del, key_ease with no recorded ease values, font/font_size/text_animator) go to unmapped with a human note — never fabricated. dedupe (default true) collapses a drag's many intermediate value samples to the final value per layer+prop.

list_instancesA

List the After Effects instances the portal can currently reach (discovered automatically — one per AE that has the AE Portal panel open). Each entry shows its id (the AE year, e.g. "2026"), port, AE version, open project, and whether it is connected. Use this when more than one AE is open so you know what to pass as the instance argument.

use_instanceA

Set the default After Effects instance that subsequent commands target when they don't pass their own instance. Accepts an instance id ("2026"/"2025"), an AE major ("26"), or a port. A per-call instance argument always overrides this. Useful when two AEs are open and you want to work in one for a while without repeating instance on every call.

add_text_animatorA

Add a Text Animator (with an explicit Range Selector) to a text layer in one call — the missing text-motion verb for typewriter / cascade / word-reveal builds. properties maps any of position [x,y], opacity, scale [x,y], rotation, tracking, blur to their animated values. basedOn sets the selector units (characters/word/line). Optional static range {start,end,offset} (percent). For a sweep, pass revealFrom/revealTo (seconds): the selector Offset is keyframed for a left-to-right reveal (inverted ramp; band defaults to Start=0,End=25 if range omitted), with optional ease (in/out/inout, influence 75).

animate_trim_pathsA

Add + keyframe a Trim Paths modifier on a shape/path layer — the classic draw-on. Animates the chosen trim prop from from to to (percent) across the over [startSec,endSec] window. mode picks which prop: "end" (default, draw-on), "start", or "offset". Optional ease (in/out/inout, influence 75).

set_shape_styleA

Style a shape group's fill and/or stroke in one call — Fill/Stroke are found or ADDED as needed. Colors accept a hex string ("#rrggbb"/"#rgb") or an [r,g,b] array (0–1 or 0–255, auto-normalized). group targets a shape group by name or 1-based index (default: first group). Optional fillOpacity/strokeOpacity (0–100), strokeWidth, and dash (array of numbers or [dash,gap] pairs; up to 3 pairs). Returns the read-back fill/stroke/width.

fit_box_to_textA

Create (or update) a rounded-rectangle background shape that tracks a text layer's bounds + padding, placed directly BEHIND the text. mode="expression" (default) live-links the box Size + Position to the text's sourceRectAtTime every frame, so the box follows edits and animation; mode="bake" computes once at the current comp time and sets static values. padding is a number (all sides), [x,y], or [left,top,right,bottom] px. corner = rounded-corner radius. color (hex "#rrggbb"/"#rgb" or [r,g,b(,a)], 0–1 or 0–255, auto-normalized) + opacity (0–100) style the fill (default black). Pass boxLayer to update an existing box instead of creating a new one. Returns { boxLayer, mode, expressionError }.

add_counterA

Number counter driven A→B by a keyframed Slider control feeding a source-text expression — the responsive-counter primitive. Target an existing text layer, or pass create:true (+ optional position, fontSize, name) to make a new one. A slider (named by sliderName, default "Counter") is keyframed from→to across over [startSec,endSec], with optional ease. The source-text expression (built WITHOUT toFixed) applies decimals, optional thousands separators (separator char, default ","), prefix, and suffix. Returns { layer, slider, from, to, over, expression, expressionError }.

find_replace_textA

Find/replace text across TextLayers, project-wide or scoped to one comp. dryRun defaults to TRUE — it reports every match (comp, layer, before, after, count) WITHOUT changing anything; pass dryRun:false to apply. matchCase (default false) and wholeWord (manual word-boundary test — no regex) refine matching. Replacement preserves the text layer's document properties (uniform styling); keyframed source-text layers are reported but skipped. Returns { scanned, matches, replaced, dryRun }.

copy_effectsA

Clone an effect stack from a source layer to one or more dest layers. For each effect it adds the effect by matchName, then copies every settable parameter value, its keyframes (full fidelity — interp/ease/spatial tangents), and any expressions. Copies ALL source effects by default; pass effects (names and/or 1-based indices) to copy a subset (in source order). clearExisting removes each dest layer's existing effects first (rejected when a dest is the source layer itself). Dest layers may live in another comp via destComp. CUSTOM_VALUE / ARB parameters (e.g. Curves curves, Colorama gradients) are NOT script-copyable — they are skipped and listed in skippedParams ("Effect > Param"). Returns { copiedTo:[{layer,index,effects,failed?}], effectsCopied, skippedParams, effectsNotFound? }.

reorder_effectsA

Reorder effects on a layer within its Effect Parade (1-based indices). Single move: pass effect (name or 1-based index) + toIndex. Full reorder: pass order (the desired list of effect names) and every named effect is moved into that sequence. Returns { effect, fromIndex, toIndex } for a single move, or { reordered:[{effect,fromIndex,toIndex}|{effect,error}] } for a full reorder.

safe_renameA

Expression-safe rename of a LAYER (or a comp). A plain rename silently breaks name-based expression references — this runs the 5-step: (1) scan every comp for expressions referencing layer("oldName"), (2) build the update map, (3) rewrite oldName->newName in those expressions FIRST, (4) rename the layer, (5) force re-enable any expression AE disabled during the change. dryRun (default false) reports which expressions WOULD change without touching anything. For a comp rename pass renameComp instead of layer; the comp is renamed but cross-comp comp("oldName") references are NOT auto-updated (called out in the result note). Returns { renamed, from, to, kind, expressionsUpdated:[{comp,layer,prop}], reEnabled:[...], dryRun, note? }.

search_projectA

READ-ONLY project-wide search — a delivery-audit tool. Walks every comp (by id) → layers → the surface named by by, WITHOUT changing anything. by: "effect" (layers whose Effect Parade has an effect whose name/matchName contains query), "expression" (properties whose expression text contains query), "font" (TextLayers whose font contains query), "text" (TextLayers whose text contains query), "footage" (FootageItems whose name/path contains query, with the comps they are used in), or "missing" (FootageItems flagged footageMissing — query optional/ignored). Matching is case-insensitive substring. Returns { by, query, hits:[{comp, layer|item, detail}], count }.

swap_colorA

Find/replace a color across the project — the client brand-color-change primitive. from/to accept a hex string ("#rrggbb"/"#rgb") or an [r,g,b(,a)] array (0–1 or 0–255, auto-normalized). A color matches when every RGB channel is within tolerance (0–1 per-channel, default 0.02) of from. dryRun defaults to TRUE — it reports every match WITHOUT changing anything; pass dryRun:false to apply. scope limits to one comp (name or id); omit for the whole project. include selects which color surfaces to touch (solids, shapeFill, shapeStroke, textFill, effectColor); omit for all. Setting a SOLID recolors every layer sharing that footage item (swapped once, flagged shared:true, called out in note). Keyframed colors are matched but SKIPPED (setValue would delete keys). Returns { from, to, tolerance, matches:[{comp, layer, surface, was, ...}], matchCount, swapped, dryRun, note? }.

build_captionsA

Turn a transcript into timed, wrapped, styled caption text layers — closes the whisper→captions loop. Provide segments ([{text,start,end}] in seconds) OR srt (raw SRT string; "HH:MM:SS,mmm --> HH:MM:SS,mmm" blocks are parsed). mode="layers" (default) creates one text layer per segment timed to [start,end]; mode="single" creates ONE layer with a source-text expression that shows the active segment by time from an embedded table. maxCharsPerLine word-wraps long lines (0 = no wrap). style = { font, fontSize, fillColor (hex or [r,g,b(,a)]), position [x,y], justification, box (true or [w,h] for paragraph/box text) } — captions default to centered near the lower third. Returns { mode, created, layers:[...] } (single mode also returns expression + expressionError).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
3d rig templatesPre-built 3D rig setups (cube/sphere/extruded text) and their property graphs
accessibility commandsVoice / text command vocabulary the AE Agent recognises
ae features 2024 2026New AE features added in 2024-2026 (3D mesh layers, env light, mocha integration, etc.)
dan ebberts expressionsDan Ebberts' expression patterns library
defensive effectsEffect application patterns that handle missing plugins gracefully
effect match namesCanonical AE effect matchNames (use these in apply_effect)
effect templatesCommon effect-stack recipes (looks, treatments, fixes)
expression standardsProject conventions for writing expressions
expressions libraryExpression snippets indexed by behaviour (wiggle, loop, smooth, etc.)
instant commandsSingle-word commands that map directly to AE actions
keyboard shortcutsAE keyboard shortcut reference
layer methodsAE layer object methods + properties (scripting reference)
learned templatesKnowledge base entry
motion design conceptsMotion design vocabulary + principles (timing, weight, anticipation)
operation templatesCommon multi-step JSX patterns (rig, parent, organise)
property match namesCanonical AE property matchNames (Transform, Effects, Mask, etc.)
scripting api referenceAE ExtendScript API quick reference
tips libraryOne-line tips/gotchas the agent surfaces to the user
troubleshootingCommon AE scripting errors and how to fix them

TDQS

B3.1/5.0

Scored across 135 tools

Disambiguation3/5

Descriptions are unusually thorough and usually state when to prefer one tool over another (run_jsx vs dedicated tools, list_effects vs lookup_effect, set_property vs set_property_batch, align_layers vs align_to_targets), which rescues a lot. But at 135 tools there are genuine near-pairs an agent can misselect: rename_layers/safe_rename/suggest_renames, add_marker/add_markers_batch, search_project/find_replace_text/swap_color, set_property/set_property_batch/batch, and several lookup_* vs knowledge_search entries. The sheer density of overlapping surface area keeps this below clearly-distinct.

Naming Consistency4/5

The dominant convention is snake_case verb_noun (add_solid, delete_layer, set_property, get_path, list_compositions) and it holds across the vast majority of the 135 tools, including get/set pairs for the same resource. Deviations are minor and readable: single-word verbs (ping, batch, undo, redo, precompose), a handful of noun-first names (whisper_transcribe, version_up), and inconsistent suffixing around *_batch.

Tool Count2/5

135 tools is far past any reasonable ceiling; an agent must choose from an enormous menu for every action, and even the server ships a `batch` meta-tool and a `run_jsx` escape hatch that implicitly acknowledge the surface is too wide. Grouping is logical (layers, keyframes, effects, shapes, render, watch, knowledge) and most tools are individually real, but stubs like ping, collect_files (returns guidance only), undo/redo, and reload_host pad it further.

Completeness3/5

Coverage of the AE domain is impressive — comps, layers, keyframes/easing, expressions, effects, masks and paths, shapes, text/captions, markers, project I/O, render queue, templates, and even a change-watch/replay system. However, the delete side is notably uneven: there is no delete_effect, delete_mask, delete_keyframe, or delete_comp, so cleanup workflows must fall back to run_jsx or reduce_project. These gaps are workable but recurring rather than one-off.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues