brainferno-mcp-bridge

v0.3.4
brainferno-mcp-bridge Checked 3 days ago Published 1 month ago

MCP server that lets an AI assistant drive Adobe Photoshop, After Effects, Premiere Pro, Illustrator, Audition and Media Encoder software.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cc_connected_apps Creative Cloud: connected applications

List all five Creative Cloud applications, how each is reached (a UXP or CEP panel over the bridge, or direct OS scripting), and whether it is currently connected. Call this first when a tool reports that an application is not connected.

cc_get_capabilities Creative Cloud: capabilities and gates

Report what this server can do for the calling session, without contacting any application: the server and protocol versions; whether this session is local (stdio) or remote (shared HTTP); the raw-script gate (BRAINFERNO_MCP_ALLOW_RAW_SCRIPTS: enabled apps, ignored tokens, whether remote sessions are allowed); one row per gated tool (cc_eval_script per ExtendScript app, ae_run_script, ps_batch_play, the Illustrator delegate tools) saying whether it is enabled for this session, how to enable it, whether its app is connected and whether the connected panel implements the command; and each panel'…

cc_eval_script Creative Cloud: evaluate a raw ExtendScript

Run a raw ExtendScript (ES3) in After Effects, Illustrator or Audition. For After Effects (when its tools are enabled), ae_run_script runs a script as one undo step. An escape hatch for work the typed tools do not cover — prefer a typed tool where one exists. Photoshop has ps_batch_play instead; Premiere Pro has no raw-script path. The completion value of the script's last statement is returned (a top-level `return` is a SyntaxError — wrap such code in an IIFE). Call __log(msg) to collect up to 200 lines / 20000 characters (logsDropped counts the rest). The result must be plain data; a hos…

ParameterTypeDescription
appId *stringWhich ExtendScript host to run the script in.
script *stringExtendScript (ES3: var only — no let/const, arrow functions, template literals or JSON) source. The value of its last statement is returned; call __log(msg) to collect log lines. To return an object…
timeoutMsintegerOverride the result timeout for this call, in ms (default: the server's slow timeout; max 30 minutes).

ae_project_info After Effects: project info

Read the open After Effects project's file path, item count, bit depth, and unsaved-changes flag.

ae_list_compositions After Effects: list compositions

List every composition in the open project with its id, dimensions, duration, frame rate, and layer count.

ae_list_footage After Effects: list footage items

List imported footage and solids with ids (for ae_add_layer kind=footage), paths, size, and duration.

ae_get_comp After Effects: comp details with layers

A composition's settings and every layer (index, name, kind, in/out/start, parent). Layer indexes and names are what the layer tools take.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.

ae_get_layer After Effects: layer details

One layer's transform values (with keyframe counts and expressions), effects, and text content.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_find_layers After Effects: find layers

Find layers in a composition by name, kind, text content and enabled state. Every filter is optional and they combine (all must match). Returns [{ index, name, kind, enabled }] in timeline order, [] when none match. Indexes shift when a layer is added at the top: pass the names to later calls (layerName).

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
enabledbooleantrue: only enabled layers; false: only disabled ones. Default: both.
kindstringLayer kind, as ae_get_comp reports it; an adjustment layer counts as adjustment, not solid. Default: any kind.
nameContainsstringPart of the layer name, case-insensitive. Default: any name.
textContainsstringPart of a text layer's text, case-insensitive; matches text layers only. Default: no text filter.

ae_open_project After Effects: open a project

Open an .aep project file (closes the current project; After Effects may prompt to save it).

ParameterTypeDescription
path *stringAbsolute path to an .aep file.

ae_save_project After Effects: save the project

Save the project. Pass a path to Save As (.aep; required the first time); omit it to save in place.

ParameterTypeDescription
pathstringAbsolute path ending in .aep.

ae_import_footage After Effects: import footage

Import an image, video, audio, or PSD file into the project. Returns the footage item id for ae_add_layer.

ParameterTypeDescription
path *stringAbsolute path to the media file.

ae_import_as_comp After Effects: import a PSD or AI file as a composition

Import a layered Photoshop (.psd) or Illustrator (.ai) file as a composition — every source layer becomes its own After Effects layer, keeping blend modes, positions, and (for PSD) layer styles as After Effects imports them. Illustrator files must be RGB (not CMYK) and saved with PDF compatibility. Returns the new composition with its layers.

ParameterTypeDescription
path *stringAbsolute path to a .psd or .ai file.
croppedbooleanCrop each layer to its content (Composition - Cropped Layers). Defaults to false = keep document-size layers.
durationnumberSeconds. Sets the new comp's length and trims its layers to match. Without it the comp takes the project default (often minutes).
frameRatenumberFrames per second for the new comp. Defaults to the project default.

ae_create_comp After Effects: create a composition

Create a new composition. Returns its id.

ParameterTypeDescription
height *integerPixels.
name *stringComposition name.
width *integerPixels.
durationnumberSeconds. Defaults to 10.
frameRatenumberDefaults to 30.
pixelAspectnumberDefaults to 1.

ae_set_comp_props After Effects: set composition properties

Change a composition's name, duration (seconds), frame rate, width, or height. Only given fields change. Shortening the duration also trims every layer whose outPoint runs past it, so outPoint-based animation lands at the new end.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
durationnumberSeconds.
frameRatenumber
heightintegerPixels.
namestringNew composition name. Default: unchanged.
widthintegerPixels.

ae_add_layer After Effects: add a layer

Add a layer to a comp: footage (needs itemId — a footage item or another comp), solid (color, optional size), text (initial text), null, or adjustment. New layers go to the top, so every other layer's index grows by one. Returns the layer's index.

ParameterTypeDescription
kind *string
anchorstringtext: center (default) makes position the text's visual centre; origin makes position the left baseline (use with left justification for lower thirds).
colorstringsolid: fill color. Defaults to white.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
heightintegersolid: defaults to comp height.
itemIdintegerfootage: id from ae_list_footage or ae_list_compositions.
namestringSets the new layer's name. To pick a layer by name, use layerName. Default: After Effects names it.
textstringtext: initial content.
widthintegersolid: defaults to comp width.

ae_add_shape After Effects: add a shape layer

Create a shape layer with one parametric shape and an optional fill and stroke. kind: rectangle or ellipse (width/height), star or polygon (points, outerRadius, and — star only — innerRadius). Colors are hex; a stroke is added when stroke or strokeWidth is given. position is the layer centre (defaults to the comp centre).

ParameterTypeDescription
kind *string
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
fillFill color (hex). Defaults to white; null for no fill.
heightnumberrectangle/ellipse height in px. Defaults to 200.
innerRadiusnumberstar inner radius in px. Defaults to 50.
namestringSets the new shape layer's name. To pick a layer by name, use layerName. Default: After Effects names it.
outerRadiusnumberstar/polygon outer radius in px. Defaults to 100.
pointsintegerstar/polygon point count. Defaults to 5.
positionarray[x, y] layer centre. Defaults to the comp centre.
roundnessnumberrectangle corner roundness in px.
strokeStroke color (hex). Omit for no stroke.
strokeWidthnumberStroke width in px (defaults to 4 when a stroke color is given).
widthnumberrectangle/ellipse width in px. Defaults to 200.

ae_add_mask After Effects: add a mask to a layer

Add a rectangle or ellipse mask to a layer, in that layer's coordinates. Bounds are left/top/right/bottom (default: the whole comp). mode is add (default), subtract, intersect, lighten, darken, difference, or none. feather and expansion are in pixels; opacity is 0–100.

ParameterTypeDescription
kind *string
bottomnumber
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
expansionnumber
feathernumber
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
leftnumber
modestring
namestringThe mask's name. Default: After Effects names it.
opacitynumber
rightnumber
topnumber

ae_set_layer_props After Effects: set layer properties

Set any of: name, enabled, startTime/inPoint/outPoint (seconds), position [x,y] or [x,y,z], scale [%,%], rotation (degrees), opacity (0–100), anchorPoint, parentIndex or parentName (parentIndex null unparents). Only given fields change.

ParameterTypeDescription
anchorPointarray
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
enabledboolean
inPointnumber
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
namestringSets the layer's name. To pick a layer by name, use layerName. Default: unchanged.
opacitynumber
outPointnumber
parentIndexIndex of the new parent layer; null unparents. Give parentIndex or parentName, not both. Default: the parent is left as it is.
parentNamestringExact name of the new parent layer (case included), as an alternative to parentIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Default: the parent is left…
positionarray
rotationnumber
scalearray
startTimenumber

ae_duplicate_layer After Effects: duplicate a layer

Duplicate a layer (the copy goes directly above it). Returns the copy's index.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
namestringSets the copy's name. To pick a layer by name, use layerName. Default: After Effects names it.

ae_delete_layer After Effects: delete a layer

Remove a layer from a comp.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_set_keyframes After Effects: set keyframes

Add or replace keyframes on a layer property. Each key is {time, value, easy?}; value is a number (opacity, rotation) or an array (position, scale, anchorPoint). easy applies Easy Ease. Use propertyPath for effect parameters.

ParameterTypeDescription
keys *array
property *stringTransform property. For anything else, give propertyPath instead.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
propertyPatharrayOptional explicit property path of match names or display names from the layer, e.g. ["ADBE Effect Parade", "Gaussian Blur", "Blurriness"]. Overrides `property`.

ae_get_keyframes After Effects: read a property's keyframes

Current value, keyframes (time + value), and expression of a layer property.

ParameterTypeDescription
property *stringTransform property. For anything else, give propertyPath instead.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
propertyPatharrayOptional explicit property path of match names or display names from the layer, e.g. ["ADBE Effect Parade", "Gaussian Blur", "Blurriness"]. Overrides `property`.

ae_remove_keyframes After Effects: remove all keyframes on a property

Delete every keyframe on the property (the value freezes at its current value).

ParameterTypeDescription
property *stringTransform property. For anything else, give propertyPath instead.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
propertyPatharrayOptional explicit property path of match names or display names from the layer, e.g. ["ADBE Effect Parade", "Gaussian Blur", "Blurriness"]. Overrides `property`.

ae_set_expression After Effects: set an expression

Set (or clear with null) the expression on a layer property. Use `property` for a transform channel, or `propertyPath` (match/display names) to reach an effect parameter, mask, or text source. If the expression does not compile it fails with the error text and the property keeps its previous expression.

ParameterTypeDescription
expression *string | nullExpression source, or null to remove.
property *stringTransform property. For anything else, give propertyPath instead.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
propertyPatharrayOptional explicit property path of match names or display names from the layer, e.g. ["ADBE Effect Parade", "Gaussian Blur", "Blurriness"]. Overrides `property`.

ae_add_to_essential_graphics After Effects: add a control to Essential Graphics

Expose a layer property in the comp's Essential Graphics panel so the comp can be exported as a Motion Graphics template (.mogrt). Give `property` for a transform channel or `sourceText` for a text layer's content, or `propertyPath` (match/display names) for anything else, e.g. an effect's Slider or Color. The control takes the property's name (rename it in the panel; After Effects has no script for that).

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
propertystringTransform channel, or sourceText for a text layer's content. For anything else, use propertyPath.
propertyPatharrayOptional explicit property path of match names or display names from the layer, e.g. ["ADBE Effect Parade", "Gaussian Blur", "Blurriness"]. Overrides `property`.

ae_export_mogrt After Effects: export a Motion Graphics template

Export a composition as a Motion Graphics template (.mogrt) — the controls added with ae_add_to_essential_graphics become its editable fields. Saves the project first (it must have been saved once). Returns the written path.

ParameterTypeDescription
outputPath *stringAbsolute path ending in .mogrt. The file name (minus .mogrt) becomes the template name.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
overwritebooleanOverwrite an existing file at that path. Defaults to true.

ae_apply_effect After Effects: apply an effect

Add an effect to a layer by match name (e.g. 'ADBE Gaussian Blur 2', 'ADBE Drop Shadow', 'ADBE Glo2', 'ADBE Tint') or display name. Returns the effect index and its parameter names for ae_set_effect_param.

ParameterTypeDescription
matchName *stringEffect match name (e.g. 'ADBE Gaussian Blur 2') or display name (e.g. 'Gaussian Blur'), at most 1024 characters. An unknown name fails with up to 3 close installed names.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
namestringRename the effect once applied (e.g. a Slider Control named 'Speed'). Essential Graphics shows a control under this name.

ae_set_effect_param After Effects: set an effect parameter

Set a parameter on an effect (by effect index or name) — number, array (color as [r,g,b] 0–1, point), or text.

ParameterTypeDescription
effect *Effect index (from ae_apply_effect / ae_get_layer) or name.
param *stringParameter display name or match name, e.g. 'Blurriness'.
value *The new value: a number (a slider, angle or opacity; a checkbox as 1 or 0; a menu as its item number, 1 = first), an array of numbers (a point as [x, y] or [x, y, z]; a color as [r, g, b] with each ch…
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_add_layer_style After Effects: add a layer style

Add a Photoshop-style layer style (drop shadow, inner shadow, glows, bevel & emboss, satin, color/gradient overlay, stroke) to a layer. Returns the style's parameters (names and current values) for ae_set_layer_style_param.

ParameterTypeDescription
style *stringLayer style name.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_get_layer_styles After Effects: read a layer's styles

List the layer styles on a layer with each style's parameters and current values.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_set_layer_style_param After Effects: set a layer style parameter

Set a parameter on a layer style already added with ae_add_layer_style — by display name (e.g. 'Distance', 'Opacity', 'Color') or match name (e.g. 'dropShadow/blur'). Colors take a hex string or [r,g,b] 0–1 array.

ParameterTypeDescription
param *stringParameter display name or match name.
style *stringLayer style name.
value *Number, [r,g,b] 0–1 array, or hex color like #ff8800.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_remove_layer_style After Effects: turn off a layer style

Turn a layer style off (its visible effect goes away). After Effects keeps a permanent slot per style, so this disables the style rather than deleting the slot; ae_add_layer_style turns it back on.

ParameterTypeDescription
style *stringLayer style name.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.

ae_set_text After Effects: set text layer content and style

Change a text layer's text, font size, font (PostScript name), color, or justification.

ParameterTypeDescription
anchorstringWhere the anchor ends up: center (default) = position is the text's visual centre; origin = position is the left baseline. Every call re-applies this, so pass it whenever you moved the anchor yourself…
colorstringHex color like #ff8800.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
fontstringPostScript font name, e.g. Arial-BoldMT.
fontSizenumber
justificationstring
layerIndexintegerLayer index (1 = top of the timeline), from ae_get_comp or ae_find_layers. Give layerIndex or layerName, not both. Indexes shift when a layer is added at the top; prefer layerName in multi-step work.
layerNamestringExact layer name (case included), as an alternative to layerIndex. Give one of the two. Fails, listing the matches, if more than one layer has this name. Not the same as name, which renames.
textstring

ae_add_marker After Effects: add a marker

Add a comp marker, or a layer marker when layerIndex or layerName is given, at a time with a comment. Returns { time, comment, on } ("comp" or "layer <index>"), plus layerName for a layer marker.

ParameterTypeDescription
comment *stringThe marker's comment.
time *numberMarker time, in seconds.
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
durationnumberMarker duration, in seconds.
layerIndexintegerIndex of the layer to mark (1 = top of the timeline). Give layerIndex or layerName for a layer marker, or neither for a comp marker (the default).
layerNamestringExact name of the layer to mark (case included), as an alternative to layerIndex; fails, listing the matches, if more than one layer has it. Default: a comp marker.

ae_render_frame After Effects: render one frame as an image

Render a single frame of a comp at a time (seconds) to a small PNG and return it as an image so you can see it. Uses a temporary downscaled comp; the project is left as it was.

ParameterTypeDescription
compIdintegerComposition id from ae_list_compositions. Give compId or compName, not both.
compNamestringExact composition name (case included), as an alternative to compId. Give one of the two. Fails, listing the matches, if more than one composition has this name.
maxDimensionintegerLongest edge in px. Defaults to 1024.
timenumberFrame time, in seconds.

ae_queue_render After Effects: add a composition to the render queue

Add a comp to the render queue with an output path (and optional output-module template). Queues only; ae_render_comp renders headlessly.

ParameterTypeDescription
compName *stringExact name of the composition to queue (case included). Fails, listing the matches, if more than one composition has it.
outputPath *stringAbsolute output file path.
templateNamestringOutput module template, e.g. 'H.264 - Match Render Settings'.

ae_render_comp After Effects: render a comp headlessly (aerender)

Save the project, then render a comp with aerender in the background (the After Effects UI stays free). Waits for it to finish (up to 30 minutes) and returns the output path. The project must have been saved once (ae_save_project).

ParameterTypeDescription
compName *stringExact composition name (case included). It must be unique: aerender renders the first match, so a name more than one composition has fails before anything is saved or rendered.
outputPath *stringAbsolute output path, e.g. C:/renders/comp.mp4 or .mov; aerender picks the format from the output module.
outputModulestringOutput module template name, e.g. 'H.264 - Match Render Settings' or 'Lossless'.
renderSettingsstringRender settings template, e.g. 'Best Settings'.
waitbooleanBlock until the render finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.

ae_batch After Effects: run several edits as one undo step

Run several After Effects edits as ONE eval and ONE undo step on the open project: operations [{ tool, args }] run in order, each with that tool's own args, and the batch stops at the first failure. atomic (default true): a failure undoes the whole batch, so After Effects is as it was; atomic false keeps what ran before the failure (one Ctrl-Z undoes it). Prefer layerName and compName over indexes: adding a layer puts it at index 1 and moves every other layer down one, and each operation resolves its names when it runs, so a later operation can name a layer an earlier one added. A solid, text…

ParameterTypeDescription
operations *arrayThe edits, in order (1 to 200). Read-only tools, renders, imports, project open and save, ae_export_mogrt, ae_add_layer_style, ae_run_script, ae_undo, ae_redo and ae_batch are refused.
atomicbooleanDefault true: on the first failure the whole batch is undone, so After Effects is as it was. false: what ran before the failure stays (one Ctrl-Z undoes it).
undoGroupNamestringLabel for Edit > Undo. Default "Batch".

ae_undo After Effects: undo the last step

Run After Effects' Edit > Undo once. It reverts the newest entry in After Effects' undo history, whoever made it (the operator or a tool): it cannot tell which step that is, or whether there was one, and does nothing when there is nothing to undo. Each ae_* edit that changed something, and each ae_batch that was not rolled back, is one entry. A call that failed before changing anything, and a rolled-back ae_batch, leave none, so do not call ae_undo after them: it would revert an earlier step. Check with ae_get_comp or ae_find_layers afterwards.

ae_redo After Effects: redo the last undone step

Run After Effects' Edit > Redo once. It re-applies the newest undone entry, whoever undid it: it cannot tell which step that is, or whether there was one, and does nothing when there is nothing to redo. After an ae_batch that was rolled back, the failed batch itself is the newest Redo entry, so ae_redo would re-apply it. Check with ae_get_comp or ae_find_layers afterwards.

ae_run_script After Effects: run a raw ExtendScript as one undo step

Run a raw ExtendScript (ES3) in After Effects as ONE undo step, on the open project: one Ctrl-Z undoes everything the call changed, even when the script failed part-way. Not covered: opening, creating or closing a project, or importing an .aep; these break the undo history. Prefer a typed ae_* tool where one exists. Error shape: an error in plain text means your script was not sent (raw scripts off for this session, args or script refused, a project switch not approved, After Effects not connected). An error whose text is a JSON envelope means the script was sent and may have partly run: check…

ParameterTypeDescription
script *stringExtendScript (ES3: var only — no let/const, arrow functions, template literals or JSON) source: a statement list or one IIFE. The value of its last statement is returned; a top-level return is a Syn…
allowProjectSwitchbooleanSet true only after this tool refused this script in plain text, you told the operator what that refusal says, and they agreed in the chat that it may close or replace the open project; defaults to fa…
argsobjectPlain JSON data the script reads as __args (defaults to {}): strings, finite numbers, booleans, null, arrays and plain objects, at most 32 levels deep. Never use a key named __proto__ (a nested one is…
suppressDialogsbooleanSuppress After Effects' own warning dialogs while the script runs; they are discarded, not shown afterwards. Verified on an export warning (from a Motion Graphics template export) and on the missing-f…
timeoutMsintegerOverride the result timeout for this call, in ms (default: the server's slow timeout, BRAINFERNO_MCP_EVAL_TIMEOUT_MS; max 30 minutes). A timeout stops the wait, not the script: After Effects keeps run…
undoGroupNamestringThe undo step's name in After Effects' Edit menu (Edit > Undo <name>). Defaults to "Brainferno script".

pp_project_info Premiere Pro: project info

Read the open Premiere Pro project's name, path, sequence count, and active sequence.

pp_list_sequences Premiere Pro: list sequences

List every sequence in the open project with its id, track counts, and length in seconds.

pp_list_project_items Premiere Pro: list project items

List every item in the project panel (clips, sequences, bins) with the id the timeline tools need, its bin path, and the media file path for clips.

pp_get_sequence Premiere Pro: get sequence

Read a sequence in full: frame size, frame rate, in/out, player position, and every video and audio track with its clips (start/end/in/out in seconds, name, disabled, project item). Clip indexes here are what the clip tools take.

ParameterTypeDescription
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.

pp_list_markers Premiere Pro: list sequence markers

List the markers of a sequence with name, type, time, duration, comments, and color index.

ParameterTypeDescription
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.

pp_list_transitions Premiere Pro: list video transitions

List the installed video transition match names (for pp_add_transition).

pp_list_effects Premiere Pro: list effects

List the installed video effect match names and display names, and audio effect display names (for pp_apply_effect).

pp_get_clip_effects Premiere Pro: get a clip's effects

List the effect components on a clip (Motion, Opacity, Time Remapping, and any applied effects) with their parameters, current values, and keyframe times. Component/parameter indexes and names feed pp_set_effect_param.

ParameterTypeDescription
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_open_project Premiere Pro: open a project

Open a .prproj file. It becomes the active project.

ParameterTypeDescription
path *stringAbsolute path to a .prproj file.

pp_create_project Premiere Pro: create a project

Create a new .prproj at a path and make it the active project.

ParameterTypeDescription
path *stringAbsolute path ending in .prproj (the folder must exist).

pp_save_project Premiere Pro: save the project

Save the active project. Pass a path to Save As.

ParameterTypeDescription
pathstringAbsolute .prproj path for Save As. Omit to save in place.

pp_import_files Premiere Pro: import media

Import media files (video, audio, images, .aep is not supported here) into the project root. Returns the new project items with the ids the timeline tools need.

ParameterTypeDescription
paths *arrayAbsolute file paths.
asNumberedStillsbooleanTreat an image sequence as one clip. Defaults to false.

pp_create_sequence Premiere Pro: create a sequence

Create a sequence and make it active. With projectItemIds the sequence takes its settings from that media and the clips are laid in order (Premiere's 'New Sequence From Clip'). Otherwise Premiere's default (or the given .sqpreset) settings are used and the sequence starts empty.

ParameterTypeDescription
name *string
presetPathstringAbsolute path to a .sqpreset sequence preset.
projectItemIdsarrayClip ids from pp_list_project_items / pp_import_files.

pp_set_active_sequence Premiere Pro: set the active sequence

Make a sequence active and open it in the timeline.

ParameterTypeDescription
sequenceId *stringSequence id (or name) from pp_list_sequences.

pp_set_player_position Premiere Pro: move the playhead

Move the playhead of a sequence to a time.

ParameterTypeDescription
seconds *numberPlayhead time, in seconds from the start of the sequence.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.

pp_insert_clip Premiere Pro: insert or overwrite a clip

Put a project item on the timeline at a time. mode 'insert' pushes later clips right; 'overwrite' replaces what is there. Returns the placed clip with its track/clip indexes.

ParameterTypeDescription
projectItemId *stringProject item id (or name / media path) from pp_list_project_items.
seconds *numberEdit point, in seconds from the start of the sequence.
audioTrackIndexintegerTarget audio track, 0 = A1. Defaults to 0.
limitShiftbooleanInsert only: shift clips on the target tracks only, not every track. Defaults to true.
modestringDefaults to insert.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
videoTrackIndexintegerTarget video track, 0 = V1. Defaults to 0.

pp_insert_mogrt Premiere Pro: insert a Motion Graphics template

Drop a Motion Graphics template (.mogrt) on the timeline at a time, like dragging it from the Essential Graphics panel. Without videoTrackIndex it lands on the first track above every video clip playing at that time, so it sits over the picture. Returns the placed graphic clip.

ParameterTypeDescription
path *stringAbsolute path to a .mogrt file.
seconds *numberInsert point, in seconds from the start of the sequence.
audioTrackIndexintegerTarget audio track, 0 = A1. Defaults to 0.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
videoTrackIndexintegerTarget video track, 0 = V1. Omit to land above the video at that time.

pp_remove_clips Premiere Pro: remove clips

Remove one or more clips from the timeline. ripple (default) closes the gap.

ParameterTypeDescription
clips *array
ripplebooleanClose the gap. Defaults to true.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.

pp_move_clip Premiere Pro: move a clip

Move a clip so it starts at a new time on its track.

ParameterTypeDescription
seconds *numberNew start time, in seconds from the start of the sequence.
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_trim_clip Premiere Pro: trim a clip

Trim a clip. startSeconds/endSeconds move its edges on the timeline; inSeconds/outSeconds set the source in/out points. Give only the values you want to change.

ParameterTypeDescription
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
endSecondsnumberNew timeline end (right edge).
inSecondsnumberNew source in point.
outSecondsnumberNew source out point.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
startSecondsnumberNew timeline start (left edge).
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_set_clip_props Premiere Pro: rename or disable a clip

Rename a clip on the timeline and/or enable/disable it.

ParameterTypeDescription
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
disabledboolean
namestring
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_add_transition Premiere Pro: add a video transition

Add a video transition (default Cross Dissolve) to the start or end of a clip.

ParameterTypeDescription
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
durationSecondsnumberTransition length. Defaults to Premiere's preference.
matchNamestringTransition match name from pp_list_transitions (substring ok). Defaults to Cross Dissolve.
positionstringWhich edge of the clip. Defaults to end.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
singleSidedbooleanForce a single-sided transition even when a neighbor exists.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_apply_effect Premiere Pro: apply an effect

Append an effect to a clip. Video: a match name or display name from pp_list_effects (e.g. 'PR.ADBE Gaussian Blur' or 'Gaussian Blur'). Audio clips: a display name from audioDisplayNames. Then set its parameters with pp_set_effect_param.

ParameterTypeDescription
effect *string
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_remove_effect Premiere Pro: remove an effect

Remove an effect component from a clip by index, match name, or display name (see pp_get_clip_effects).

ParameterTypeDescription
component *
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_set_effect_param Premiere Pro: set an effect parameter or keyframe

Set a parameter of an effect component on a clip (Motion's Position/Scale/Rotation, Opacity, or any applied effect). Without seconds the value is static; with seconds a keyframe is added at that time. Values: number, boolean, [x, y] for points, or a #rrggbb color.

ParameterTypeDescription
component *Component index, match name, or display name (e.g. 'Motion') from pp_get_clip_effects.
param *Parameter index or display name (e.g. 'Scale').
value *
clipIndexintegerClip index on that track (left to right) from pp_get_sequence. Defaults to 0.
interpolationstringKeyframe interpolation (with seconds).
secondsnumberKeyframe time. Omit for a static value.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
trackIndexintegerTrack index, 0 = V1/A1. Defaults to 0.
trackTypestringTrack kind. Defaults to video.

pp_add_marker Premiere Pro: add a sequence marker

Add a marker to a sequence at a time.

ParameterTypeDescription
name *stringMarker name.
seconds *numberMarker time, in seconds from the start of the sequence.
commentsstring
durationSecondsnumberDefaults to 0.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
typestringDefaults to comment.

pp_export_frame Premiere Pro: export a frame

Render one frame of a sequence to a small PNG and return it as an image so you can see the timeline. Also returns the path.

ParameterTypeDescription
maxDimensionintegerLongest edge in pixels. Defaults to 1024.
secondsnumberFrame time. Defaults to the playhead.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.

pp_list_export_presets Premiere Pro: find export presets

Find encoder presets (.epr) installed with Premiere / Media Encoder and in the user's Documents, filtered by a substring (e.g. 'Match Source - Adaptive High' for H.264, 'ProRes', 'PNG Sequence'). Feed the path to pp_export_sequence.

ParameterTypeDescription
filterstringCase-insensitive substring of the preset name or folder.
limitinteger

pp_export_sequence Premiere Pro: export a sequence

Export a sequence with an encoder preset (.epr from pp_list_export_presets). mode 'immediately' renders inside Premiere and waits (up to 30 minutes); 'queue_ame' hands it to Media Encoder and returns at once.

ParameterTypeDescription
outputPath *stringAbsolute output path; the preset decides the format, so match the extension (e.g. .mp4 for H.264).
presetPath *stringAbsolute .epr path.
fullbooleanExport the whole sequence (true, default) or only the in/out range.
modestringDefaults to immediately.
sequenceIdstringSequence id (or name) from pp_list_sequences. Defaults to the active sequence.
waitbooleanBlock until the export finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.

ps_list_documents Photoshop: list open documents

List every open Photoshop document with its id, dimensions, resolution, color mode, and layer count.

ps_list_layers Photoshop: list layers

List the layers of a document, flattened depth-first, with group nesting recorded as a depth value. Includes each layer's id (needed by the layer tools), kind, visibility, opacity, and bounds.

ParameterTypeDescription
documentIdintegerDocument id from ps_list_documents. Defaults to the active document.

ps_create_document Photoshop: create a document

Create a new document and make it active. Later tools act on the active document.

ParameterTypeDescription
height *integerHeight in pixels.
width *integerWidth in pixels.
fillstringBackground fill. Defaults to white.
modestringColor mode. Defaults to rgb.
namestringDocument name.
resolutionnumberPixels per inch. Defaults to 72.

ps_open_document Photoshop: open a file

Open an image or PSD file as a new document and make it active.

ParameterTypeDescription
path *stringAbsolute path to the file.

ps_save_document Photoshop: save the document

Save the active document. Pass a path to Save As (.psd; required the first time); omit it to save in place. Overwrites an existing file at that path.

ParameterTypeDescription
pathstringAbsolute path ending in .psd. Omit to save to the current file.

ps_export Photoshop: export a copy

Export a flattened copy of the active document as PNG or JPEG. The document itself is not changed. Overwrites an existing file.

ParameterTypeDescription
format *stringOutput format.
path *stringAbsolute output path with .png or .jpg extension.
qualityintegerjpg only: 0–12. Defaults to 10.

ps_get_preview Photoshop: preview the document

Render the active document (all visible layers) to a small PNG and return it as an image so you can see the current state. Also returns the file path. Use after edits to check your work.

ParameterTypeDescription
maxDimensionintegerLongest edge in pixels. Defaults to 1024.

ps_create_layer Photoshop: create a layer

Add an empty pixel layer or a layer group above the active layer. Returns the new layer's id.

ParameterTypeDescription
kindstringDefaults to pixel.
namestringLayer name.

ps_create_text_layer Photoshop: add a text layer

Add a point-text layer with the given text at x/y (the text's anchor). Font is a PostScript name (e.g. ArialMT, Arial-BoldMT). Returns the new layer's id.

ParameterTypeDescription
text *stringThe text. Use \n for line breaks.
x *numberAnchor x, in document pixels.
y *numberAnchor y (baseline of the first line), in document pixels.
colorstringText color. Defaults to black.
fontstringPostScript font name. Defaults to ArialMT.
fontSizenumberSize in points. Defaults to 48.
namestringLayer name. Defaults to the text.

ps_set_layer_props Photoshop: set layer properties

Rename, show/hide, set opacity or blend mode, or lock a layer. Only the given fields change.

ParameterTypeDescription
layerId *integerLayer id from ps_list_layers.
blendModestring
lockedbooleanLock all (true) or unlock (false).
namestring
opacitynumber0–100.
visibleboolean

ps_move_layer Photoshop: move a layer's content

Translate a layer's pixels/text by dx/dy pixels.

ParameterTypeDescription
dx *numberHorizontal offset, in document pixels.
dy *numberVertical offset, in document pixels.
layerId *integerLayer id from ps_list_layers.

ps_duplicate_layer Photoshop: duplicate a layer

Duplicate a layer above itself. Returns the new layer's id.

ParameterTypeDescription
layerId *integerLayer id from ps_list_layers.
namestringName for the copy.

ps_delete_layer Photoshop: delete a layer

Delete a layer (or a group and its contents).

ParameterTypeDescription
layerId *integerLayer id from ps_list_layers.

ps_set_layer_style Photoshop: add or edit a layer style

Add a layer style (drop shadow, inner shadow, glows, bevel & emboss, satin, color overlay, gradient overlay, stroke) to a layer, or change one that is already there — the same style is updated in place, other styles are kept. Only the given settings change; the rest use Photoshop's defaults.

ParameterTypeDescription
layerId *integerLayer id from ps_list_layers.
style *stringLayer style name.
alignWithLayerbooleangradientOverlay: anchor the gradient to the layer. Defaults to true.
altitudenumberbevelEmboss light altitude in degrees. Defaults to 30.
anglenumberLight angle in degrees (shadows, satin, bevel).
bevelDirectionstringbevelEmboss only. Defaults to up.
bevelStylestringbevelEmboss only. Defaults to innerBevel.
blendModestringBlend mode of the style. Defaults per style (shadows multiply, glows screen…).
colorstringMain color of the style (shadow, glow, satin, overlay, or stroke color).
colorsarraygradientOverlay: two or more hex colors, spread evenly from start to end. Defaults to black→white.
depthnumberbevelEmboss depth in percent. Defaults to 100.
distancenumberOffset distance in pixels (shadows, satin).
ditherbooleangradientOverlay: dither to reduce banding.
enabledbooleanDefaults to true.
gradientStylestringgradientOverlay shape. Defaults to linear.
highlightColorbevelEmboss highlight. Defaults to white.
noisenumberNoise in percent (shadows, glows).
opacitynumberStyle opacity 0–100.
reversebooleangradientOverlay: flip the gradient direction.
scalenumbergradientOverlay scale in percent. Defaults to 100.
shadowColorbevelEmboss shadow. Defaults to black.
sizenumberBlur/size in pixels (shadows, glows, satin, bevel, stroke width).
softennumberbevelEmboss soften in pixels. Defaults to 0.
spreadnumberSpread/choke in percent (shadows, glows).
strokePositionstringstroke only. Defaults to outside.
useGlobalAnglebooleanFollow the document's global light (shadows, bevel).

ps_get_layer_styles Photoshop: read a layer's styles

Read the layer styles on a layer as Photoshop's layerEffects descriptor (null when the layer has none).

ParameterTypeDescription
layerId *integerLayer id from ps_list_layers.

ps_remove_layer_style Photoshop: remove layer styles

Remove one layer style from a layer, or every style when no style is given.

ParameterTypeDescription
layerId *integerLayer id from ps_list_layers.
stylestringOmit to clear all styles.

ps_place_image Photoshop: place an image

Place an image file into the active document as a new smart-object layer, centered. Returns the new layer's id.

ParameterTypeDescription
path *stringAbsolute path to an image file.
namestring

ps_fill Photoshop: fill an area with a color

Fill a rectangle (or the whole canvas if no rectangle is given) on the active layer with a solid color. The active layer must be a pixel layer (make one with ps_create_layer).

ParameterTypeDescription
color *stringHex color like #ff8800.
bottomnumberBottom, in document pixels.
layerIdintegerLayer to fill. Defaults to the active layer.
leftnumberLeft, in document pixels.
rightnumberRight, in document pixels.
topnumberTop, in document pixels.

ps_apply_filter Photoshop: apply a filter

Apply a filter to a layer: gaussianBlur (radius px), motionBlur (angle°, distance px), or unsharpMask (amount %, radius px, threshold).

ParameterTypeDescription
filter *string
layerId *integerLayer id from ps_list_layers.
amountnumberunsharpMask amount in %. Defaults to 100.
anglenumbermotionBlur angle in degrees. Defaults to 0.
distancenumbermotionBlur distance in px. Defaults to 30.
radiusnumbergaussianBlur/unsharpMask radius in px. Defaults to 10 / 2.
thresholdintegerunsharpMask threshold. Defaults to 0.

ps_resize_image Photoshop: resize the image

Resample the whole document to a new pixel size (keeps the aspect ratio if only one dimension is given).

ParameterTypeDescription
heightinteger
resolutionnumberPixels per inch; unchanged if omitted.
widthinteger

ps_crop Photoshop: crop

Crop the document to a rectangle.

ParameterTypeDescription
bottom *numberBottom, in document pixels.
left *numberLeft, in document pixels.
right *numberRight, in document pixels.
top *numberTop, in document pixels.

ps_batch_play Photoshop: run raw batchPlay descriptors

Run an array of Photoshop ActionDescriptors through batchPlay inside executeAsModal. Reaches anything Photoshop can record; prefer a typed ps_* tool where one exists. Returns the envelope { ok, error?: { message, line, bodyLine }, durationMs, value, logs } with batchPlay's results array as value (line/bodyLine are always null here; logs is empty). durationMs is the server round trip, including any wait behind other Photoshop calls. Photoshop reports a failed descriptor in-band, as an { _obj: "error" } entry in the results: this tool turns that into ok:false naming the failing index. Descriptor…

ParameterTypeDescription
descriptors *arrayActionDescriptor objects (batchPlay 'actionJSON' form).

ai_list_documents Illustrator: list open documents

List every open Illustrator document with its dimensions, artboard count, and color space.

ai_create_document Illustrator: create a document

Create a new Illustrator document with one artboard of the given size, and make it active. Later ai_* drawing tools act on the active document's active artboard.

ParameterTypeDescription
height *numberArtboard height in points.
width *numberArtboard width in points.
colorModestringDocument color mode. Defaults to rgb.

ai_create_shape Illustrator: draw a shape

Draw a rectangle, ellipse, line, polygon, or star on the active artboard. x/y is the top-left of the shape's bounding box; polygons and stars are inscribed in that box. Returns the new item's name and bounds.

ParameterTypeDescription
height *numberHeight in points.
kind *stringShape type.
width *numberWidth in points.
x *numberLeft edge, in points from the active artboard's top-left (y goes down).
y *numberTop edge, in points from the active artboard's top-left (y goes down).
cornerRadiusnumberrect only: corner radius in points.
fillstringFill color; omit for no fill.
innerRadiusRationumberstar only: inner/outer radius. Defaults to 0.5.
namestringLayer-panel name for the new item.
pointsintegerstar only: number of points. Defaults to 5.
sidesintegerpolygon only: number of sides. Defaults to 6.
strokeStroke color; omit for no stroke.
strokeWidthnumberStroke width in points.

ai_create_text Illustrator: add text

Add a text frame on the active artboard at x/y (its top-left). Give width and height for wrapping area text; omit both for a single-line point text. Font is a PostScript name (e.g. ArialMT, Arial-BoldMT).

ParameterTypeDescription
text *stringThe text content. Use \n for line breaks.
x *numberLeft edge, in points from the active artboard's top-left (y goes down).
y *numberTop edge, in points from the active artboard's top-left (y goes down).
fillstringText color.
fontstringPostScript font name, e.g. ArialMT or Helvetica-Bold.
fontSizenumberFont size in points. Defaults to Illustrator's current default.
heightnumberArea-text height (with width).
namestringLayer-panel name for the text frame.
widthnumberArea-text width (with height).

ai_save_document Illustrator: save the document

Save the active document as a native .ai file. Pass a path to Save As (required the first time); omit it to save in place. Overwrites an existing file at that path.

ParameterTypeDescription
pathstringAbsolute path ending in .ai. Omit to save to the current file.

ai_export_artboard Illustrator: export the active artboard

Export the active artboard to a PNG or JPG (clipped to the artboard, at a scale percentage), or the document to SVG. Returns the written file's path. Overwrites an existing file.

ParameterTypeDescription
format *stringOutput format.
path *stringAbsolute output path with the matching extension.
scalePercentnumberpng/jpg only: 100 = artboard size at 72 ppi; 200 = 2x. Defaults to 100.

ai_get_preview Illustrator: preview the active artboard

Render the active artboard to a small PNG and return it as an image so you can see the current state. Also returns the file path. Use after drawing to check your work.

ParameterTypeDescription
maxDimensionintegerLongest edge of the preview in pixels. Defaults to 1024.

au_app_state Audition: application state

Audition version, every open document, the active document in full (see au_document_info), and the transport state.

au_document_info Audition: active document info

Read the active document: kind (WaveDocument / MultitrackDocument), name, path, sample rate, duration and playhead in seconds, audio format, markers, and for a multitrack session every track with its clips.

au_list_commands Audition: list menu commands

List Audition's scriptable menu commands (every Application.COMMAND_* constant, 600+) with id and help text, optionally filtered by a substring and annotated with whether each is enabled right now. Feed an id to au_invoke_command.

ParameterTypeDescription
checkEnabledbooleanAlso report enabled/disabled for each (slower on the full list). Defaults to false.
filterstringCase-insensitive substring of the id, constant name, or help text, e.g. 'normalize', 'Effects', 'Favorite'.

au_invoke_command Audition: run a menu command

Run a menu command by id from au_list_commands (Effects, Edit, View, Multitrack…). Refuses commands that are disabled in the current view unless force is set. Many Effects commands open their dialog in Audition; for hands-off processing use au_apply_favorite or the audio_* tools.

ParameterTypeDescription
id *stringCommand id from au_list_commands, e.g. 'Effects.Normalize'.
forcebooleanRun even if Audition reports it disabled.

au_apply_favorite Audition: apply a Favorite

Apply a saved Favorite (a recorded effect chain from Audition's Favorites panel) to the active waveform document, without dialogs. Built-in examples: 'Normalize to -0.1 dB', 'Fade In', 'Fade Out', 'Remove 60 Hz Hum', 'Vocal Enhancer'.

ParameterTypeDescription
name *stringExact Favorite name as shown in the Favorites panel.

au_set_playhead Audition: move the playhead

Move the active document's playhead to a time in seconds.

ParameterTypeDescription
seconds *number

au_transport Audition: transport

Play, stop, pause, or record the active document, or just read the transport state. Optionally set loop playback.

ParameterTypeDescription
actionstringDefaults to state.
loopboolean

au_add_marker Audition: add a marker

Add a marker (cue or range) to the active document at a time in seconds.

ParameterTypeDescription
name *string
seconds *number
descriptionstring
durationSecondsnumber0 (default) makes a cue point; more makes a range.
typestringMarker type as Audition names it. Defaults to 'Cue'.

au_open_document Audition: open an audio file or session

Open an audio file (.wav, .mp3, .flac, …) or a .sesx multitrack session in Audition. It becomes the active document.

ParameterTypeDescription
path *stringAbsolute path.

au_save_document Audition: save / export the active document

Save the active document in place, or Save As to a path (format from the extension: .wav, .mp3, .flac, .aif, .sesx for sessions). export=true writes the file but keeps the document pointing at its original file (a waveform 'Export'; for a session, a mixdown export).

ParameterTypeDescription
exportbooleanExport a copy instead of re-pointing the document. Defaults to false.
pathstringAbsolute path for Save As / Export. Omit to save in place.

au_close_document Audition: close the active document

Close the active document. Audition may ask about unsaved changes; save first with au_save_document to avoid the prompt.

au_api_dump Audition: dump the scripting API

Dump Audition's ExtendScript class dictionary (every class, property, method, and help text) to a JSON file and return a summary. Use it to discover what this Audition build can do before scripting it.

ParameterTypeDescription
outputPath *stringAbsolute .json path to write.

audio_probe Audio: probe a file

Read a media file's format, duration, sample rate, channels, codec and bit rate with ffprobe. Works on video files too.

ParameterTypeDescription
path *stringAbsolute path of the input file (audio, or a video whose audio track is used).

audio_measure_loudness Audio: measure loudness

Measure integrated loudness (LUFS), true peak (dBTP) and loudness range (EBU R128) with ffmpeg's loudnorm. Nothing is written.

ParameterTypeDescription
path *stringAbsolute path of the input file (audio, or a video whose audio track is used).

audio_normalize_loudness Audio: normalize loudness (EBU R128, two-pass)

Write a copy normalized to a target integrated loudness with a true-peak ceiling (two-pass loudnorm, linear gain when possible). Defaults suit podcasts/social (-16 LUFS, -1.5 dBTP); broadcast is -23 LUFS, -1 dBTP; Apple Music -16, Spotify/YouTube -14.

ParameterTypeDescription
input *stringAbsolute path of the input file (audio, or a video whose audio track is used).
output *stringAbsolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…).
loudnessRangenumberTarget loudness range (LU). Defaults to 11.
targetLufsnumberIntegrated loudness target. Defaults to -16.
truePeakDbnumberTrue-peak ceiling in dBTP. Defaults to -1.5.

audio_convert Audio: convert / extract

Convert an audio file, or extract the audio track from a video, to another format. The output extension picks the container/codec (e.g. .wav, .mp3, .m4a, .flac); optionally resample, change channel count, or set a bit rate.

ParameterTypeDescription
input *stringAbsolute path of the input file (audio, or a video whose audio track is used).
output *stringAbsolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…).
bitratestringLossy bit rate like 192k.
channelsinteger1 = mono, 2 = stereo.
codecstringExplicit ffmpeg audio codec (pcm_s24le, aac, libmp3lame, flac…). Usually unnecessary.
sampleRateintegere.g. 48000.

audio_trim Audio: trim to a time range

Write the part of a file between two times (seconds). Omit one end to keep from the start or to the end.

ParameterTypeDescription
input *stringAbsolute path of the input file (audio, or a video whose audio track is used).
output *stringAbsolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…).
endSecondsnumber
startSecondsnumber

audio_trim_silence Audio: trim leading and trailing silence

Remove silence from the start and end of a file (not from the middle).

ParameterTypeDescription
input *stringAbsolute path of the input file (audio, or a video whose audio track is used).
output *stringAbsolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…).
minSilenceSecondsnumberHow long it must stay quiet to count. Defaults to 0.5.
thresholdDbnumberAnything quieter counts as silence. Defaults to -50 dB.

audio_denoise Audio: reduce broadband noise

Write a denoised copy using ffmpeg's FFT denoiser (afftdn) with noise tracking. Good for room tone and hiss; gentle settings by default.

ParameterTypeDescription
input *stringAbsolute path of the input file (audio, or a video whose audio track is used).
output *stringAbsolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…).
noiseFloorDbnumberEstimated noise floor. Defaults to -30.
reductionDbnumberNoise reduction amount in dB. Defaults to 12.

audio_mix Audio: mix files together

Sum several audio files into one (e.g. voice + music bed), each with its own gain. Length = the longest input.

ParameterTypeDescription
inputs *arrayAbsolute paths, mixed in parallel from time 0.
output *stringAbsolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…).
volumesarrayLinear gain per input (1 = unchanged, 0.3 = music bed). Same order as inputs.

audio_waveform_image Audio: draw the waveform

Render a file's waveform to a PNG and return it as an image so you can see levels, silences and clipping.

ParameterTypeDescription
path *stringAbsolute path of the input file (audio, or a video whose audio track is used).
colorstringWaveform color. Defaults to #f5a623.
heightintegerDefaults to 300.
widthintegerDefaults to 1200.

cc_job_status Jobs: status of a job

Read a background job (render, export, pipeline): status, per-step results, progress, artifacts, error with the recovery tool, and the log tail.

ParameterTypeDescription
jobId *string

cc_list_jobs Jobs: list jobs

List recent background jobs, newest first, with status and progress.

ParameterTypeDescription
limitintegerDefaults to 20.

cc_job_wait Jobs: wait for a job

Block until a job finishes or the timeout passes (progress is streamed meanwhile), then return its result or its failure report.

ParameterTypeDescription
jobId *string
timeoutSecondsintegerDefaults to 300 (BRAINFERNO_MCP_JOB_WAIT_SECONDS).

cc_job_cancel Jobs: cancel a job

Cancel a running job. Process steps (aerender, ffmpeg) are killed; in-app steps finish their current command first.

ParameterTypeDescription
jobId *string

ame_server Media Encoder: service status

Status of Adobe Media Encoder's headless web service (address, online, current job). With start=true the service is started (hidden AME renderer, ~5–20 s) if it is not already running.

ParameterTypeDescription
startbooleanStart the service if needed. Defaults to false.

ame_encode Media Encoder: encode a file, sequence or project

Encode with Adobe Media Encoder, headless: any media file, a Premiere .prproj (optionally a specific sequence by id from pp_list_sequences), or FCP XML, with an .epr preset, to an output path. Runs as a job (progress, cancel); the service is started on demand. Encoder preset: give presetPath (absolute .epr) or presetName (substring, resolved with the same search as pp_list_export_presets, e.g. 'H264 Match Source - High bitrate', 'MP3 128', 'Waveform Audio 48kHz').

ParameterTypeDescription
output *stringAbsolute output path. AME replaces the extension with the preset's format (e.g. its 'H264 Match Source' QuickTime preset writes .mov); the result reports the file actually written.
source *stringAbsolute path of the media file, .prproj, or FCP .xml.
overwritebooleanReplace an existing output file. Defaults to true.
presetNamestring
presetPathstring
sequenceIdstringFor a .prproj source: the sequence GUID to render (default: the first sequence).
waitbooleanBlock until the encode finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.

ame_job_status Media Encoder: current job

The service's current (or last) job: status, progress, details, source/preset/output paths.

ame_history Media Encoder: job history

Completed jobs the service remembers (newest first), with status and paths.

ParameterTypeDescription
limitintegerDefaults to 20.

ame_cancel Media Encoder: abort the current job

Abort the job Media Encoder is working on (or a given AME job id).

ParameterTypeDescription
ameJobIdstringDefaults to the current job.

ame_stop_server Media Encoder: stop the service

Stop the headless Media Encoder web service (and its renderer) now instead of waiting for the idle timeout.

pipeline_ps_to_ae Pipeline: Photoshop → After Effects

Export the active Photoshop document as a flattened image and import it into After Effects as footage; optionally add it as a layer to a comp. Steps: ps_export → ae_import_footage → ae_add_layer. Runs as a job with progress; a failure names the step and its recovery tool.

ParameterTypeDescription
compIdintegerComp id from ae_list_compositions to add the footage to as a layer.
formatstringDefaults to png.
layerNamestringName for the new layer (not a lookup of an existing one; used only with compId). Default: After Effects names it after the footage.
outputPathstringWhere to write the export. Defaults to the job's work folder.
waitbooleanBlock until the pipeline finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.

pipeline_render_and_import Pipeline: After Effects render → Premiere Pro

Save the AE project, render a comp headlessly with aerender, import the file into the open Premiere project, and optionally insert it into a sequence. Steps: ae_render_comp → pp_import_files → pp_insert_clip. Runs as a job with progress (aerender frame progress is logged).

ParameterTypeDescription
compName *stringExact After Effects composition name.
audioTrackIndexinteger0 = A1. Defaults to 0.
insertAtSecondsnumberInsert the render into the sequence at this time. Omit to only import.
modestringDefaults to insert.
outputModulestringAE output module template, e.g. 'H.264 - Match Render Settings - 15 Mbps' or 'Lossless'.
outputPathstringRender output path. Defaults to <work folder>/<comp>.avi (Lossless) — give .mp4 with an H.264 output module.
renderSettingsstring
sequenceIdstringPremiere sequence to insert into. Defaults to the active sequence.
videoTrackIndexinteger0 = V1. Defaults to 0.
waitbooleanBlock until the pipeline finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.

pipeline_audio_roundtrip Pipeline: Premiere audio → ffmpeg → Premiere

Export a sequence's audio as WAV, measure it, optionally denoise, normalize loudness (EBU R128 two-pass), import the result and lay it on an audio track. Steps: pp_export_sequence → audio_measure_loudness → audio_denoise → audio_normalize_loudness → pp_import_files → pp_insert_clip.

ParameterTypeDescription
audioTrackIndexintegerTarget audio track, 0 = A1. Defaults to 1 (A2) so the original stays.
denoisebooleanRun afftdn before normalizing. Defaults to false.
insertbooleanInsert the processed audio back into the sequence (overwrite). Defaults to true.
insertAtSecondsnumberWhere to place the processed audio. Defaults to 0. Set null-like by omitting insert via audioTrackIndex -1? No: pass insert=false.
presetPathstringWAV encoder preset (.epr). Defaults to Adobe's 'Waveform Audio 48kHz 16-bit'.
sequenceIdstringDefaults to the active sequence.
targetLufsnumberDefaults to -16.
truePeakDbnumberDefaults to -1.5.
waitbooleanBlock until the pipeline finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.

pipeline_ai_to_ps Pipeline: Illustrator → Photoshop

Export the active Illustrator artboard as a PNG and place it into the active Photoshop document as a new smart-object layer. Steps: ai_export_artboard → ps_place_image.

ParameterTypeDescription
layerNamestringName for the new Photoshop layer. Default: the name Photoshop gives a placed file.
outputPathstringWhere to write the PNG. Defaults to the job's work folder.
scalePercentnumberExport scale, 100 = artboard size at 72 ppi. Defaults to 200 for a crisp placement.
waitbooleanBlock until the pipeline finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait.