brainferno-mcp-bridge
v0.3.4MCP 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…
| Parameter | Type | Description |
|---|---|---|
appId * | string | Which ExtendScript host to run the script in. |
script * | string | ExtendScript (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… |
timeoutMs | integer | Override 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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).
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
enabled | boolean | true: only enabled layers; false: only disabled ones. Default: both. |
kind | string | Layer kind, as ae_get_comp reports it; an adjustment layer counts as adjustment, not solid. Default: any kind. |
nameContains | string | Part of the layer name, case-insensitive. Default: any name. |
textContains | string | Part 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).
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to a .psd or .ai file. |
cropped | boolean | Crop each layer to its content (Composition - Cropped Layers). Defaults to false = keep document-size layers. |
duration | number | Seconds. Sets the new comp's length and trims its layers to match. Without it the comp takes the project default (often minutes). |
frameRate | number | Frames 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.
| Parameter | Type | Description |
|---|---|---|
height * | integer | Pixels. |
name * | string | Composition name. |
width * | integer | Pixels. |
duration | number | Seconds. Defaults to 10. |
frameRate | number | Defaults to 30. |
pixelAspect | number | Defaults 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
duration | number | Seconds. |
frameRate | number | |
height | integer | Pixels. |
name | string | New composition name. Default: unchanged. |
width | integer | Pixels. |
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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
anchor | string | text: center (default) makes position the text's visual centre; origin makes position the left baseline (use with left justification for lower thirds). |
color | string | solid: fill color. Defaults to white. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
height | integer | solid: defaults to comp height. |
itemId | integer | footage: id from ae_list_footage or ae_list_compositions. |
name | string | Sets the new layer's name. To pick a layer by name, use layerName. Default: After Effects names it. |
text | string | text: initial content. |
width | integer | solid: 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).
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
fill | Fill color (hex). Defaults to white; null for no fill. | |
height | number | rectangle/ellipse height in px. Defaults to 200. |
innerRadius | number | star inner radius in px. Defaults to 50. |
name | string | Sets the new shape layer's name. To pick a layer by name, use layerName. Default: After Effects names it. |
outerRadius | number | star/polygon outer radius in px. Defaults to 100. |
points | integer | star/polygon point count. Defaults to 5. |
position | array | [x, y] layer centre. Defaults to the comp centre. |
roundness | number | rectangle corner roundness in px. |
stroke | Stroke color (hex). Omit for no stroke. | |
strokeWidth | number | Stroke width in px (defaults to 4 when a stroke color is given). |
width | number | rectangle/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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
bottom | number | |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
expansion | number | |
feather | number | |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
left | number | |
mode | string | |
name | string | The mask's name. Default: After Effects names it. |
opacity | number | |
right | number | |
top | number |
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.
| Parameter | Type | Description |
|---|---|---|
anchorPoint | array | |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
enabled | boolean | |
inPoint | number | |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
name | string | Sets the layer's name. To pick a layer by name, use layerName. Default: unchanged. |
opacity | number | |
outPoint | number | |
parentIndex | Index of the new parent layer; null unparents. Give parentIndex or parentName, not both. Default: the parent is left as it is. | |
parentName | string | Exact 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… |
position | array | |
rotation | number | |
scale | array | |
startTime | number |
ae_duplicate_layer After Effects: duplicate a layer
Duplicate a layer (the copy goes directly above it). Returns the copy's index.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
name | string | Sets 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
keys * | array | |
property * | string | Transform property. For anything else, give propertyPath instead. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
propertyPath | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
property * | string | Transform property. For anything else, give propertyPath instead. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
propertyPath | array | Optional 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).
| Parameter | Type | Description |
|---|---|---|
property * | string | Transform property. For anything else, give propertyPath instead. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
propertyPath | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
expression * | string | null | Expression source, or null to remove. |
property * | string | Transform property. For anything else, give propertyPath instead. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
propertyPath | array | Optional 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).
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
property | string | Transform channel, or sourceText for a text layer's content. For anything else, use propertyPath. |
propertyPath | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Absolute path ending in .mogrt. The file name (minus .mogrt) becomes the template name. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
overwrite | boolean | Overwrite 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.
| Parameter | Type | Description |
|---|---|---|
matchName * | string | Effect 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. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
name | string | Rename 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.
| Parameter | Type | Description |
|---|---|---|
effect * | Effect index (from ae_apply_effect / ae_get_layer) or name. | |
param * | string | Parameter 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… | |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
style * | string | Layer style name. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
param * | string | Parameter display name or match name. |
style * | string | Layer style name. |
value * | Number, [r,g,b] 0–1 array, or hex color like #ff8800. | |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
style * | string | Layer style name. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
anchor | string | Where 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… |
color | string | Hex color like #ff8800. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
font | string | PostScript font name, e.g. Arial-BoldMT. |
fontSize | number | |
justification | string | |
layerIndex | integer | Layer 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. |
layerName | string | Exact 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. |
text | string |
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.
| Parameter | Type | Description |
|---|---|---|
comment * | string | The marker's comment. |
time * | number | Marker time, in seconds. |
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
duration | number | Marker duration, in seconds. |
layerIndex | integer | Index 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). |
layerName | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Composition id from ae_list_compositions. Give compId or compName, not both. |
compName | string | Exact 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. |
maxDimension | integer | Longest edge in px. Defaults to 1024. |
time | number | Frame 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.
| Parameter | Type | Description |
|---|---|---|
compName * | string | Exact name of the composition to queue (case included). Fails, listing the matches, if more than one composition has it. |
outputPath * | string | Absolute output file path. |
templateName | string | Output 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).
| Parameter | Type | Description |
|---|---|---|
compName * | string | Exact 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 * | string | Absolute output path, e.g. C:/renders/comp.mp4 or .mov; aerender picks the format from the output module. |
outputModule | string | Output module template name, e.g. 'H.264 - Match Render Settings' or 'Lossless'. |
renderSettings | string | Render settings template, e.g. 'Best Settings'. |
wait | boolean | Block 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…
| Parameter | Type | Description |
|---|---|---|
operations * | array | The 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. |
atomic | boolean | Default 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). |
undoGroupName | string | Label 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…
| Parameter | Type | Description |
|---|---|---|
script * | string | ExtendScript (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… |
allowProjectSwitch | boolean | Set 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… |
args | object | Plain 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… |
suppressDialogs | boolean | Suppress 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… |
timeoutMs | integer | Override 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… |
undoGroupName | string | The 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.
| Parameter | Type | Description |
|---|---|---|
sequenceId | string | Sequence 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.
| Parameter | Type | Description |
|---|---|---|
sequenceId | string | Sequence 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.
| Parameter | Type | Description |
|---|---|---|
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track kind. Defaults to video. |
pp_open_project Premiere Pro: open a project
Open a .prproj file. It becomes the active project.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path | string | Absolute .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.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Absolute file paths. |
asNumberedStills | boolean | Treat 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
presetPath | string | Absolute path to a .sqpreset sequence preset. |
projectItemIds | array | Clip 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.
| Parameter | Type | Description |
|---|---|---|
sequenceId * | string | Sequence 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.
| Parameter | Type | Description |
|---|---|---|
seconds * | number | Playhead time, in seconds from the start of the sequence. |
sequenceId | string | Sequence 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.
| Parameter | Type | Description |
|---|---|---|
projectItemId * | string | Project item id (or name / media path) from pp_list_project_items. |
seconds * | number | Edit point, in seconds from the start of the sequence. |
audioTrackIndex | integer | Target audio track, 0 = A1. Defaults to 0. |
limitShift | boolean | Insert only: shift clips on the target tracks only, not every track. Defaults to true. |
mode | string | Defaults to insert. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
videoTrackIndex | integer | Target 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to a .mogrt file. |
seconds * | number | Insert point, in seconds from the start of the sequence. |
audioTrackIndex | integer | Target audio track, 0 = A1. Defaults to 0. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
videoTrackIndex | integer | Target 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.
| Parameter | Type | Description |
|---|---|---|
clips * | array | |
ripple | boolean | Close the gap. Defaults to true. |
sequenceId | string | Sequence 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.
| Parameter | Type | Description |
|---|---|---|
seconds * | number | New start time, in seconds from the start of the sequence. |
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track 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.
| Parameter | Type | Description |
|---|---|---|
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
endSeconds | number | New timeline end (right edge). |
inSeconds | number | New source in point. |
outSeconds | number | New source out point. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
startSeconds | number | New timeline start (left edge). |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track 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.
| Parameter | Type | Description |
|---|---|---|
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
disabled | boolean | |
name | string | |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track 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.
| Parameter | Type | Description |
|---|---|---|
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
durationSeconds | number | Transition length. Defaults to Premiere's preference. |
matchName | string | Transition match name from pp_list_transitions (substring ok). Defaults to Cross Dissolve. |
position | string | Which edge of the clip. Defaults to end. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
singleSided | boolean | Force a single-sided transition even when a neighbor exists. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track 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.
| Parameter | Type | Description |
|---|---|---|
effect * | string | |
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track 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).
| Parameter | Type | Description |
|---|---|---|
component * | ||
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track 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.
| Parameter | Type | Description |
|---|---|---|
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 * | ||
clipIndex | integer | Clip index on that track (left to right) from pp_get_sequence. Defaults to 0. |
interpolation | string | Keyframe interpolation (with seconds). |
seconds | number | Keyframe time. Omit for a static value. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
trackIndex | integer | Track index, 0 = V1/A1. Defaults to 0. |
trackType | string | Track kind. Defaults to video. |
pp_add_marker Premiere Pro: add a sequence marker
Add a marker to a sequence at a time.
| Parameter | Type | Description |
|---|---|---|
name * | string | Marker name. |
seconds * | number | Marker time, in seconds from the start of the sequence. |
comments | string | |
durationSeconds | number | Defaults to 0. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
type | string | Defaults 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.
| Parameter | Type | Description |
|---|---|---|
maxDimension | integer | Longest edge in pixels. Defaults to 1024. |
seconds | number | Frame time. Defaults to the playhead. |
sequenceId | string | Sequence 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Case-insensitive substring of the preset name or folder. |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Absolute output path; the preset decides the format, so match the extension (e.g. .mp4 for H.264). |
presetPath * | string | Absolute .epr path. |
full | boolean | Export the whole sequence (true, default) or only the in/out range. |
mode | string | Defaults to immediately. |
sequenceId | string | Sequence id (or name) from pp_list_sequences. Defaults to the active sequence. |
wait | boolean | Block 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.
| Parameter | Type | Description |
|---|---|---|
documentId | integer | Document 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.
| Parameter | Type | Description |
|---|---|---|
height * | integer | Height in pixels. |
width * | integer | Width in pixels. |
fill | string | Background fill. Defaults to white. |
mode | string | Color mode. Defaults to rgb. |
name | string | Document name. |
resolution | number | Pixels 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format. |
path * | string | Absolute output path with .png or .jpg extension. |
quality | integer | jpg 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.
| Parameter | Type | Description |
|---|---|---|
maxDimension | integer | Longest 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.
| Parameter | Type | Description |
|---|---|---|
kind | string | Defaults to pixel. |
name | string | Layer 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text. Use \n for line breaks. |
x * | number | Anchor x, in document pixels. |
y * | number | Anchor y (baseline of the first line), in document pixels. |
color | string | Text color. Defaults to black. |
font | string | PostScript font name. Defaults to ArialMT. |
fontSize | number | Size in points. Defaults to 48. |
name | string | Layer 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.
| Parameter | Type | Description |
|---|---|---|
layerId * | integer | Layer id from ps_list_layers. |
blendMode | string | |
locked | boolean | Lock all (true) or unlock (false). |
name | string | |
opacity | number | 0–100. |
visible | boolean |
ps_move_layer Photoshop: move a layer's content
Translate a layer's pixels/text by dx/dy pixels.
| Parameter | Type | Description |
|---|---|---|
dx * | number | Horizontal offset, in document pixels. |
dy * | number | Vertical offset, in document pixels. |
layerId * | integer | Layer id from ps_list_layers. |
ps_duplicate_layer Photoshop: duplicate a layer
Duplicate a layer above itself. Returns the new layer's id.
| Parameter | Type | Description |
|---|---|---|
layerId * | integer | Layer id from ps_list_layers. |
name | string | Name for the copy. |
ps_delete_layer Photoshop: delete a layer
Delete a layer (or a group and its contents).
| Parameter | Type | Description |
|---|---|---|
layerId * | integer | Layer 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.
| Parameter | Type | Description |
|---|---|---|
layerId * | integer | Layer id from ps_list_layers. |
style * | string | Layer style name. |
alignWithLayer | boolean | gradientOverlay: anchor the gradient to the layer. Defaults to true. |
altitude | number | bevelEmboss light altitude in degrees. Defaults to 30. |
angle | number | Light angle in degrees (shadows, satin, bevel). |
bevelDirection | string | bevelEmboss only. Defaults to up. |
bevelStyle | string | bevelEmboss only. Defaults to innerBevel. |
blendMode | string | Blend mode of the style. Defaults per style (shadows multiply, glows screen…). |
color | string | Main color of the style (shadow, glow, satin, overlay, or stroke color). |
colors | array | gradientOverlay: two or more hex colors, spread evenly from start to end. Defaults to black→white. |
depth | number | bevelEmboss depth in percent. Defaults to 100. |
distance | number | Offset distance in pixels (shadows, satin). |
dither | boolean | gradientOverlay: dither to reduce banding. |
enabled | boolean | Defaults to true. |
gradientStyle | string | gradientOverlay shape. Defaults to linear. |
highlightColor | bevelEmboss highlight. Defaults to white. | |
noise | number | Noise in percent (shadows, glows). |
opacity | number | Style opacity 0–100. |
reverse | boolean | gradientOverlay: flip the gradient direction. |
scale | number | gradientOverlay scale in percent. Defaults to 100. |
shadowColor | bevelEmboss shadow. Defaults to black. | |
size | number | Blur/size in pixels (shadows, glows, satin, bevel, stroke width). |
soften | number | bevelEmboss soften in pixels. Defaults to 0. |
spread | number | Spread/choke in percent (shadows, glows). |
strokePosition | string | stroke only. Defaults to outside. |
useGlobalAngle | boolean | Follow 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).
| Parameter | Type | Description |
|---|---|---|
layerId * | integer | Layer 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.
| Parameter | Type | Description |
|---|---|---|
layerId * | integer | Layer id from ps_list_layers. |
style | string | Omit 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to an image file. |
name | string |
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).
| Parameter | Type | Description |
|---|---|---|
color * | string | Hex color like #ff8800. |
bottom | number | Bottom, in document pixels. |
layerId | integer | Layer to fill. Defaults to the active layer. |
left | number | Left, in document pixels. |
right | number | Right, in document pixels. |
top | number | Top, 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).
| Parameter | Type | Description |
|---|---|---|
filter * | string | |
layerId * | integer | Layer id from ps_list_layers. |
amount | number | unsharpMask amount in %. Defaults to 100. |
angle | number | motionBlur angle in degrees. Defaults to 0. |
distance | number | motionBlur distance in px. Defaults to 30. |
radius | number | gaussianBlur/unsharpMask radius in px. Defaults to 10 / 2. |
threshold | integer | unsharpMask 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).
| Parameter | Type | Description |
|---|---|---|
height | integer | |
resolution | number | Pixels per inch; unchanged if omitted. |
width | integer |
ps_crop Photoshop: crop
Crop the document to a rectangle.
| Parameter | Type | Description |
|---|---|---|
bottom * | number | Bottom, in document pixels. |
left * | number | Left, in document pixels. |
right * | number | Right, in document pixels. |
top * | number | Top, 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…
| Parameter | Type | Description |
|---|---|---|
descriptors * | array | ActionDescriptor 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.
| Parameter | Type | Description |
|---|---|---|
height * | number | Artboard height in points. |
width * | number | Artboard width in points. |
colorMode | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
height * | number | Height in points. |
kind * | string | Shape type. |
width * | number | Width in points. |
x * | number | Left edge, in points from the active artboard's top-left (y goes down). |
y * | number | Top edge, in points from the active artboard's top-left (y goes down). |
cornerRadius | number | rect only: corner radius in points. |
fill | string | Fill color; omit for no fill. |
innerRadiusRatio | number | star only: inner/outer radius. Defaults to 0.5. |
name | string | Layer-panel name for the new item. |
points | integer | star only: number of points. Defaults to 5. |
sides | integer | polygon only: number of sides. Defaults to 6. |
stroke | Stroke color; omit for no stroke. | |
strokeWidth | number | Stroke 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).
| Parameter | Type | Description |
|---|---|---|
text * | string | The text content. Use \n for line breaks. |
x * | number | Left edge, in points from the active artboard's top-left (y goes down). |
y * | number | Top edge, in points from the active artboard's top-left (y goes down). |
fill | string | Text color. |
font | string | PostScript font name, e.g. ArialMT or Helvetica-Bold. |
fontSize | number | Font size in points. Defaults to Illustrator's current default. |
height | number | Area-text height (with width). |
name | string | Layer-panel name for the text frame. |
width | number | Area-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.
| Parameter | Type | Description |
|---|---|---|
path | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format. |
path * | string | Absolute output path with the matching extension. |
scalePercent | number | png/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.
| Parameter | Type | Description |
|---|---|---|
maxDimension | integer | Longest 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.
| Parameter | Type | Description |
|---|---|---|
checkEnabled | boolean | Also report enabled/disabled for each (slower on the full list). Defaults to false. |
filter | string | Case-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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Command id from au_list_commands, e.g. 'Effects.Normalize'. |
force | boolean | Run 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'.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
seconds * | number |
au_transport Audition: transport
Play, stop, pause, or record the active document, or just read the transport state. Optionally set loop playback.
| Parameter | Type | Description |
|---|---|---|
action | string | Defaults to state. |
loop | boolean |
au_add_marker Audition: add a marker
Add a marker (cue or range) to the active document at a time in seconds.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
seconds * | number | |
description | string | |
durationSeconds | number | 0 (default) makes a cue point; more makes a range. |
type | string | Marker 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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).
| Parameter | Type | Description |
|---|---|---|
export | boolean | Export a copy instead of re-pointing the document. Defaults to false. |
path | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Absolute .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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
input * | string | Absolute path of the input file (audio, or a video whose audio track is used). |
output * | string | Absolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…). |
loudnessRange | number | Target loudness range (LU). Defaults to 11. |
targetLufs | number | Integrated loudness target. Defaults to -16. |
truePeakDb | number | True-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.
| Parameter | Type | Description |
|---|---|---|
input * | string | Absolute path of the input file (audio, or a video whose audio track is used). |
output * | string | Absolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…). |
bitrate | string | Lossy bit rate like 192k. |
channels | integer | 1 = mono, 2 = stereo. |
codec | string | Explicit ffmpeg audio codec (pcm_s24le, aac, libmp3lame, flac…). Usually unnecessary. |
sampleRate | integer | e.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.
| Parameter | Type | Description |
|---|---|---|
input * | string | Absolute path of the input file (audio, or a video whose audio track is used). |
output * | string | Absolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…). |
endSeconds | number | |
startSeconds | number |
audio_trim_silence Audio: trim leading and trailing silence
Remove silence from the start and end of a file (not from the middle).
| Parameter | Type | Description |
|---|---|---|
input * | string | Absolute path of the input file (audio, or a video whose audio track is used). |
output * | string | Absolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…). |
minSilenceSeconds | number | How long it must stay quiet to count. Defaults to 0.5. |
thresholdDb | number | Anything 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.
| Parameter | Type | Description |
|---|---|---|
input * | string | Absolute path of the input file (audio, or a video whose audio track is used). |
output * | string | Absolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…). |
noiseFloorDb | number | Estimated noise floor. Defaults to -30. |
reductionDb | number | Noise 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.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | Absolute paths, mixed in parallel from time 0. |
output * | string | Absolute path of the file to write; the extension picks the format (.wav, .mp3, .aac, .flac, .m4a…). |
volumes | array | Linear 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path of the input file (audio, or a video whose audio track is used). |
color | string | Waveform color. Defaults to #f5a623. |
height | integer | Defaults to 300. |
width | integer | Defaults 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.
| Parameter | Type | Description |
|---|---|---|
jobId * | string |
cc_list_jobs Jobs: list jobs
List recent background jobs, newest first, with status and progress.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Defaults 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.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
timeoutSeconds | integer | Defaults 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
start | boolean | Start 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').
| Parameter | Type | Description |
|---|---|---|
output * | string | Absolute 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 * | string | Absolute path of the media file, .prproj, or FCP .xml. |
overwrite | boolean | Replace an existing output file. Defaults to true. |
presetName | string | |
presetPath | string | |
sequenceId | string | For a .prproj source: the sequence GUID to render (default: the first sequence). |
wait | boolean | Block 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Defaults to 20. |
ame_cancel Media Encoder: abort the current job
Abort the job Media Encoder is working on (or a given AME job id).
| Parameter | Type | Description |
|---|---|---|
ameJobId | string | Defaults 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.
| Parameter | Type | Description |
|---|---|---|
compId | integer | Comp id from ae_list_compositions to add the footage to as a layer. |
format | string | Defaults to png. |
layerName | string | Name for the new layer (not a lookup of an existing one; used only with compId). Default: After Effects names it after the footage. |
outputPath | string | Where to write the export. Defaults to the job's work folder. |
wait | boolean | Block 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).
| Parameter | Type | Description |
|---|---|---|
compName * | string | Exact After Effects composition name. |
audioTrackIndex | integer | 0 = A1. Defaults to 0. |
insertAtSeconds | number | Insert the render into the sequence at this time. Omit to only import. |
mode | string | Defaults to insert. |
outputModule | string | AE output module template, e.g. 'H.264 - Match Render Settings - 15 Mbps' or 'Lossless'. |
outputPath | string | Render output path. Defaults to <work folder>/<comp>.avi (Lossless) — give .mp4 with an H.264 output module. |
renderSettings | string | |
sequenceId | string | Premiere sequence to insert into. Defaults to the active sequence. |
videoTrackIndex | integer | 0 = V1. Defaults to 0. |
wait | boolean | Block 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.
| Parameter | Type | Description |
|---|---|---|
audioTrackIndex | integer | Target audio track, 0 = A1. Defaults to 1 (A2) so the original stays. |
denoise | boolean | Run afftdn before normalizing. Defaults to false. |
insert | boolean | Insert the processed audio back into the sequence (overwrite). Defaults to true. |
insertAtSeconds | number | Where to place the processed audio. Defaults to 0. Set null-like by omitting insert via audioTrackIndex -1? No: pass insert=false. |
presetPath | string | WAV encoder preset (.epr). Defaults to Adobe's 'Waveform Audio 48kHz 16-bit'. |
sequenceId | string | Defaults to the active sequence. |
targetLufs | number | Defaults to -16. |
truePeakDb | number | Defaults to -1.5. |
wait | boolean | Block 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.
| Parameter | Type | Description |
|---|---|---|
layerName | string | Name for the new Photoshop layer. Default: the name Photoshop gives a placed file. |
outputPath | string | Where to write the PNG. Defaults to the job's work folder. |
scalePercent | number | Export scale, 100 = artboard size at 72 ppi. Defaults to 200 for a crisp placement. |
wait | boolean | Block until the pipeline finishes (default; set by BRAINFERNO_MCP_DEFAULT_WAIT). false returns a jobId at once; poll with cc_job_wait. |