mark
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
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
Always start with
get_project_mapmode="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.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.
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_instancesto see them — each has an id which is the AE year ("2025", "2026").Pass
instanceon any tool to target one, e.g.set_text({ ..., instance: "2026" }). When only one AE is connected,instanceis optional and routes automatically.If two are connected and you omit
instance, the call is REFUSED (it will not guess) — read the error, then passinstanceor calluse_instanceto set a default target.use_instancesets a sticky default; a per-callinstancealways 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_instancesandpingmay includehostResponsive(bool) — true when the panel's AE host answered a liveness probe within the last 10s.connectedonly means the socket is open; a hung or modal-blocked AE can still showconnected:truewithhostResponsive: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 75mode="out"— animation leaving: first key BEZIER-out 75, last key LINEAR-inmode="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:
Call
get_easingfirst to capture current key times + easing.Call
set_propertywithtimeset to an existing keyframe's time and the new value. When a property already has keyframes,set_propertywrites at that time without touching interpolation.Do not call
set_easingafterward 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:
Find the audio layer (light map flags
hasAudio).Call
whisper_transcribeon it. Words come back withframeStart/frameEndalready aligned to the comp's fps.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_upso 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_renamesand propose them to the user before applying withrename_layers.
Tool selection
Use dedicated tools whenever one fits.
run_jsxis the escape hatch — only when no dedicated tool exists. If you find yourself reaching forrun_jsxrepeatedly 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 BEFOREapply_effectwhen 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_framecaptures 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_stripinstead: 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)
OutputModuleAPI in AE 2026 usessetSettings/setSetting(NOTapplySettings).Formatis read-only via setSettings → "Property is read-only". You CANNOT switch codec/container by script. The only way to change codec isoutputModule.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"})+ setom.filelast (template application can reset the path).
Render queue — blocking behavior
start_rendercallsrenderQueue.render()which is synchronous in ExtendScript — the bridge times out at 60s but AE keeps rendering. Don't retryrender_queue_status(also blocked).To track progress, poll the filesystem with
Bashfor the expected output files (size + stable mtime). Once stable, AE will be responsive again.Use
render_queue_add_batchto 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_instancesto see them, thenuse_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_VALUEeffect 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 —
Formatis read-only on AE 2026; scripts can onlyapplyTemplate(existingName)orsaveAsTemplate(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_jsxwith a tiny test, orreload_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
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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 |
| 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. |
| 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 ( |
| 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 |
| 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 |
| add_markerC | Add a marker on a layer or on the comp. Time can be seconds, or pass |
| 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 |
| 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 |
| apply_expression_presetC | Apply a preset expression. Library: |
| 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 |
| match_positionC | Set |
| 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 |
| 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 |
| 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 |
| 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 |
| set_pathA | Write a mask or shape path's geometry. Same target selector as get_path (mask / shapePath / shapeIndex). |
| add_maskA | Create a mask on a layer. mode maps to MaskMode (add/subtract/intersect/difference/none; default add). |
| 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 |
| 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 |
| use_instanceA | Set the default After Effects instance that subsequent commands target when they don't pass their own |
| 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. |
| animate_trim_pathsA | Add + keyframe a Trim Paths modifier on a shape/path layer — the classic draw-on. Animates the chosen trim prop from |
| 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). |
| 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. |
| 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 |
| find_replace_textA | Find/replace text across TextLayers, project-wide or scoped to one |
| 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 |
| reorder_effectsA | Reorder effects on a layer within its Effect Parade (1-based indices). Single move: pass |
| 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 |
| search_projectA | READ-ONLY project-wide search — a delivery-audit tool. Walks every comp (by id) → layers → the surface named by |
| swap_colorA | Find/replace a color across the project — the client brand-color-change primitive. |
| build_captionsA | Turn a transcript into timed, wrapped, styled caption text layers — closes the whisper→captions loop. Provide |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| 3d rig templates | Pre-built 3D rig setups (cube/sphere/extruded text) and their property graphs |
| accessibility commands | Voice / text command vocabulary the AE Agent recognises |
| ae features 2024 2026 | New AE features added in 2024-2026 (3D mesh layers, env light, mocha integration, etc.) |
| dan ebberts expressions | Dan Ebberts' expression patterns library |
| defensive effects | Effect application patterns that handle missing plugins gracefully |
| effect match names | Canonical AE effect matchNames (use these in apply_effect) |
| effect templates | Common effect-stack recipes (looks, treatments, fixes) |
| expression standards | Project conventions for writing expressions |
| expressions library | Expression snippets indexed by behaviour (wiggle, loop, smooth, etc.) |
| instant commands | Single-word commands that map directly to AE actions |
| keyboard shortcuts | AE keyboard shortcut reference |
| layer methods | AE layer object methods + properties (scripting reference) |
| learned templates | Knowledge base entry |
| motion design concepts | Motion design vocabulary + principles (timing, weight, anticipation) |
| operation templates | Common multi-step JSX patterns (rig, parent, organise) |
| property match names | Canonical AE property matchNames (Transform, Effects, Mask, etc.) |
| scripting api reference | AE ExtendScript API quick reference |
| tips library | One-line tips/gotchas the agent surfaces to the user |
| troubleshooting | Common AE scripting errors and how to fix them |
TDQS
Scored across 135 tools
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.
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.
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.
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.