MCP Tools Reference

This reference lists every tool, resource and prompt exposed by ascii-motion-mcp@3.0.0, the current published release: 216 tools, 9 resources and 7 prompts. It is generated from the server's own tools/list, resources/list and prompts/list responses, so names and parameters match what your MCP client sees.

The tools come in three kinds: 106 canonical operations generated from the app's bridge contract, 109 compatibility tools that keep the 2.3.0 names working, and read_artifact. Prefer canonical operations for new work. When a canonical operation shares a name with a compatibility tool but takes different inputs, it has an app_ prefix. See Live Sync.

Requires ASCII Motion 2.2.6 or later

Live statuses describe 3.0.0 connected to an app that speaks bridge v3 (protocol 3), which ascii-motion.app has from version 2.2.6. Without a connected app, canonical operations return UNSUPPORTED. For older app builds, use the legacy ascii-motion-mcp@2.3.0. See Live Sync.

Live status legend

StatusMeaning in 3.0.0Tools
Applied by the appThe connected app validates and applies the change, returns a new revision, and records it in its undo history. Verified against a mounted app.149
Check the resultSucceeds, but the app did not confirm the change. Read the note and check the result.1
ReadReads the project, a catalog or a saved artifact without changing anything.41
Saves an artifactRenders or saves a file as an artifact without changing the project. Nothing is downloaded in the browser.14
Needs sign-in (untested)Needs a signed-in browser session. Only the signed-out AUTH_REQUIRED response has been tested.11

Tools by category

Live connection

get_auth_token

Get the authentication token for browser connection.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

get_connection_status

Check browser connection status. Returns whether browser is connected and client count

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

refresh_state_from_browser

Request the browser to send its current state. Use this before reading canvas data to ensure you have the latest state. Returns success if browser is connected and responded.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

Inspection and preview

compare_frames

Compare two frames and show what cells changed between them. Useful for understanding motion and edits in an animation.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameAintegerYesIndex of first frame
frameBintegerYesIndex of second frame
showUnchangedbooleanNoInclude unchanged cells in output
maxCellsintegerNoMaximum cells per page
offsetintegerNoContinue from the previous nextOffset

describe_animation

Get a high-level description of the animation: frame count, timing, and motion patterns.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

get_canvas_ascii

Get the canvas as raw ASCII text (characters only, no color info). Good for verifying visual appearance.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameIndexintegerNoFrame index (defaults to current)
regionobjectNoRegion to render (defaults to bounding box of content)
trimEmptybooleanNoTrim empty rows/columns around content
overlayPreviousFramebooleanNoShow previous frame content as dim (for motion context)

get_canvas_preview

Get non-empty cells in a region. Use for inspecting specific areas.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameIndexintegerNoFrame index (defaults to current)
regionobjectNoRegion to preview (defaults to entire canvas)
maxCellsintegerNoMaximum cells to return
offsetintegerNoCell offset from the previous page

get_canvas_render

Render the current frame (or a bounded set of all frames) as raw ANSI-colored terminal text. The text payload contains actual ESC bytes and can be printed directly.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameIndexintegerNoFrame index (defaults to current). Cannot be combined with allFrames.
allFramesbooleanNoRender every frame with separators (maximum 24 frames)
colorModestringNoANSI color mode. One of: 16, 256, truecolor.
maxWidthintegerNoDownsample to at most this many character columns without upscaling
trimEmptybooleanNoTrim empty outer rows and columns before rendering

get_canvas_summary

Get a compact summary of the canvas (dimensions, fill count, bounding box). Use this first to understand the canvas before requesting more detail.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameIndexintegerNoFrame index (defaults to current)

get_capabilities

Contract/version info, supported operations, runtime catalogs summary, auth and entitlement state.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_catalog

Runtime catalogs: effect/shader/generator types with property schemas, palettes, export formats and settings, FIGlet fonts, box styles, brush shapes, autofill palettes.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
familystringYesOne of: effects, shaders, generators, palettes, export_formats, tools, fonts.
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_color_stats

Get statistics about colors used in the current frame. Useful before applying color effects.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameIndexintegerNoFrame to analyze (defaults to current)
includeBackgroundbooleanNoInclude background colors in analysis

get_document

Full native project session (.asciimtn v2) including layers, groups, effects, shaders, generators, typography, palettes and tool state.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_document_summary

Compact structure: canvas, timeline, layers/groups with content-frame ranges, effects, shaders, selection and history flags. No cell data.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_frame_diff

Get the cells that differ between two frames. Useful for understanding animation changes.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
frameAintegerYesFirst frame index
frameBintegerYesSecond frame index
maxCellsintegerNoMaximum changed cells per page
offsetintegerNoChanged-cell offset from the previous page

read_cells

Read cells at a timeline frame. scope "composite" = app compositor output (transforms, effects, generators; shaders excluded). scope "layer" = raw content frame data in layer-local coordinates.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
scopestringNoOne of: composite, layer.
frameintegerNoDefaults to the playhead
layerIdstringNo—
contentFrameIdstringNo—
regionobjectNo—
formatstringNoOne of: text, cells.
includeEffectsbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Batch operations

apply_operations

Apply up to 100 document mutations atomically: one revision, one undo entry, full rollback on any failure. Sub-operations must be non-nested document mutations (not undo/redo/new_project/load_project/apply_operations, reads, view, or io). Later steps see earlier steps' results; failures report details.index/details.op.

Kind: Canonical operation · Live status: Applied by the app — Up to 100 canonical operations as one revision and one undo entry; any failure rolls back the whole batch.

ParameterTypeRequiredDescription
operationsarrayYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Canvas and cells

app_fill_region

Fill a rectangular region or the current selection with one cell style.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
regionobjectNo—
useSelectionbooleanNo—
cellobjectYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_resize_canvas

Resize canvas across all layers/content frames, keeping content pinned to anchor (default top-left).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
widthintegerYes—
heightintegerYes—
anchorobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

clear_canvas

Clear all cells on the current frame, leaving it empty

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

No parameters.

clear_cell

Clear a cell, resetting it to empty (space with transparent background)

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
xintegerYesX coordinate
yintegerYesY coordinate

clear_cells

Erase a region, the current selection, or the whole content frame.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
regionobjectNo—
useSelectionbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

crop_canvas

Crop the canvas to a region (or the current selection bounds) across all layers.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
regionobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

fill_region

Fill a region with a character and colors. Can be contiguous (flood fill) or global (all matching cells).

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
xintegerYesStarting X coordinate
yintegerYesStarting Y coordinate
charstringYesCharacter to fill with
colorstringNoFill color
bgColorstringNoFill background color
contiguousbooleanNoIf true, only fills connected cells. If false, fills all matching cells.
matchCharbooleanNoOnly fill cells that match the starting cell character
matchColorbooleanNoOnly fill cells that match the starting cell color
matchBgColorbooleanNoOnly fill cells that match the starting cell background

flip_content

Flip a region, the selection, or the whole canvas horizontally/vertically.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
axisstringYesOne of: horizontal, vertical.
regionobjectNo—
useSelectionbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_cell

Get the character and colors at a specific canvas position

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
xintegerYesX coordinate (0-based, left to right)
yintegerYesY coordinate (0-based, top to bottom)
frameIndexintegerNoFrame index (defaults to current frame)

import_text

Place multi-line plain text; spaces become blank cells unless keepSpaces.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
textstringYes—
xintegerNo—
yintegerNo—
styleobjectNo—
keepSpacesbooleanNo—
clearFirstbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

paste_ascii_block

Paste a multi-line ASCII art block onto the canvas at a specified position. Great for pasting found ASCII art.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
textstringYesMulti-line ASCII text to paste
xintegerNoX position for top-left corner
yintegerNoY position for top-left corner
colorstringNoText color for all pasted characters
bgColorstringNoBackground color for all pasted characters
preserveSpacesbooleanNoIf true, spaces will overwrite existing cells. If false, spaces are transparent.

replace_in_cells

Find/replace characters and/or colors in non-empty cells of one content frame, a layer, or the whole project. match: {} matches every non-empty cell. region/useSelection restrict the edit to those cells (scope "content_frame" only); unmatched fields of each cell are preserved.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
scopestringNoOne of: content_frame, layer, project.
regionobjectNo—
useSelectionbooleanNoRestrict to the current selection mask (no coordinates need to be transferred)
matchobjectYes{} = all non-empty cells
replaceobjectYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

resize_canvas

Resize the canvas. Content outside the new bounds will be clipped.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
widthintegerYesNew width (4-200)
heightintegerYesNew height (4-100)

set_canvas_background

Set canvas background color ("transparent" allowed).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
colorobjectYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_cell

Set the character and/or colors at a specific canvas position

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
xintegerYesX coordinate (0-based)
yintegerYesY coordinate (0-based)
charstringNoSingle character to set
colorstringNoForeground color (hex, e.g., #FFFFFF)
bgColorstringNoBackground color (hex or "transparent")

set_cells

Write or erase cells in one content frame.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
cellsarrayYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_cells_batch

Set multiple cells in a single operation. More efficient than calling set_cell repeatedly.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
cellsarrayYesArray of cells to set (max 10,000). Each cell can specify any combination of char, color, bgColor.

set_tool_state

Set current drawing character/colors and active tool (used as defaults by drawing operations).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
characterobjectNo—
foregroundColorobjectNo—
backgroundColorobjectNo—
toolstringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_typography

Set font, font size, character spacing and line spacing used for rendering/export.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
fontIdstringNo—
fontSizenumberNo—
characterSpacingnumberNo—
lineSpacingnumberNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

shift_content

Shift all cells of a content frame by dx/dy, optionally wrapping around the canvas.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
dxintegerYes—
dyintegerYes—
wrapbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Drawing and text

draw_ascii_box

Box-drawing rectangle or connected line path with junction-aware characters.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
styleIdstringNoBox style id (see get_catalog tools)
regionobjectNo—
patharrayNoPolyline vertices (horizontal/vertical/diagonal segments)
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

draw_bezier

Bezier path (open stroke or closed shape) rasterized by the pen-tool engine. Coordinates are cell units (fractional allowed); handles are relative.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
pointsarrayYes—
closedbooleanNo—
filledbooleanNo—
fillModestringNoOne of: constant, palette, autofill, lineart.
autofillPaletteIdstringNo—
strokeWidthnumberNo—
strokeTaperStartnumberNo—
strokeTaperEndnumberNo—
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

draw_brush_stroke

Pencil/eraser stroke through points with brush size and shape (aspect-ratio aware, respects selection mask).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
pointsarrayYes—
sizeintegerNo—
shapestringNoOne of: circle, square, horizontal, vertical.
styleobjectNo—
erasebooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

draw_line

Straight line between two cells (Bresenham), optional brush size.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
fromobjectYes—
toobjectYes—
sizeintegerNo—
shapestringNoOne of: circle, square, horizontal, vertical.
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

draw_shape

Rectangle or ellipse via the vector-shape engine (filled or outline, constant/palette/autofill/lineart fill).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
shapestringYesOne of: rectangle, ellipse.
regionobjectYes—
filledbooleanNo—
fillModestringNoOne of: constant, palette, autofill, lineart.
autofillPaletteIdstringNo—
strokeWidthnumberNo—
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

fill_area

Paint-bucket fill from a seed cell (contiguous or global, match by char/color/bgColor).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
xintegerYes—
yintegerYes—
contiguousbooleanNo—
matchobjectNo—
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

gradient_fill

Gradient fill (linear/radial) of a seed fill area or region, interpolating character, text color and/or background color stops.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
typestringNoOne of: linear, radial.
startobjectYes—
endobjectYes—
seedobjectNo—
regionobjectNo—
contiguousbooleanNo—
matchobjectNo—
characterobjectNo—
textColorobjectNo—
backgroundColorobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

place_figlet_text

Render FIGlet ASCII-type text with a font/layout and stamp it at a position.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
xintegerYes—
yintegerYes—
textstringYes—
fontstringNo—
horizontalLayoutstringNoOne of: normal, narrow, squeezed, fitted, wide.
verticalLayoutstringNoOne of: normal, narrow, squeezed, fitted, wide.
transparentWhitespacebooleanNo—
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

place_text

Type text at a position (text tool); newlines advance rows.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
xintegerYes—
yintegerYes—
textstringYes—
styleobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Frames

add_frame

Add a new frame to the animation

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
atIndexintegerNoIndex to insert at (defaults to end)
durationintegerNoFrame duration in ms (default: 100)
copyFromIndexintegerNoCopy content from this frame index
namestringNoFrame name

delete_frame

Delete a frame from the animation. Cannot delete the last remaining frame.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
indexintegerYesIndex of frame to delete

duplicate_frame

Duplicate a frame, inserting the copy immediately after the original

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
indexintegerYesIndex of frame to duplicate

go_to_frame

Navigate to a specific frame, making it the current/active frame

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
indexintegerYesFrame index to navigate to

list_frames

List all frames in the animation with their metadata

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

set_frame_duration

Set the duration of a frame in milliseconds

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
indexintegerYesFrame index
durationintegerYesDuration in milliseconds (10-60000)

set_frame_name

Set or change the name of a frame

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
indexintegerYesFrame index
namestringYesNew frame name

Frame transforms

copy_frame_and_modify

Duplicate a frame and apply modifications in a single operation. Efficient for creating animation sequences.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
sourceIndexintegerYesIndex of frame to copy
modificationsarrayYesCell modifications to apply to the new frame
insertAtIndexintegerNoWhere to insert the new frame (defaults to after source)
namestringNoName for the new frame
durationintegerNoDuration for the new frame

copy_region_to_frame

Copy a region of cells from one frame to another

Kind: Compatibility tool (2.3.0 name) · Live status: Check the result — Handled by the server in 3.0.0 testing: the response has no document revision, so the change was not confirmed by the app. Check the result with read_cells, or use set_cells with a target.

ParameterTypeRequiredDescription
sourceFrameintegerYesSource frame index
targetFrameintegerYesTarget frame index
sourceRegionobjectYesRegion to copy from source
targetPositionobjectNoPosition to paste at in target (defaults to same position)
overwritebooleanNoIf true, overwrite existing cells in target

flip_region

Flip/mirror content horizontally or vertically

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
directionstringYesFlip direction. One of: horizontal, vertical.
regionobjectNoRegion to flip (defaults to entire canvas)
frameIndexintegerNoFrame to flip (defaults to current)

interpolate_frames

Generate intermediate frames between two keyframes. Creates smooth transitions.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
startFrameintegerYesStarting keyframe index
endFrameintegerYesEnding keyframe index
stepsintegerYesNumber of intermediate frames to generate
methodstringNoInterpolation method. One of: linear, fade.

shift_frame_content

Shift all content on the current frame by an x/y offset. Useful for creating scrolling or movement animations.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
dxintegerYesHorizontal shift (positive = right, negative = left)
dyintegerYesVertical shift (positive = down, negative = up)
wrapbooleanNoIf true, content wraps around edges
frameIndexintegerNoFrame to shift (defaults to current)

Layers, groups and timeline

add_content_frame

Add a new content frame (canvas data segment) to a layer at a specific timeline position.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesLayer ID
startFrameintegerYesStarting frame number
durationFramesintegerYesDuration in frames
dataobjectNoInitial cell data for the content frame

add_keyframe

Add a keyframe to a layer property track. Creates the property track if it doesn't exist.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesLayer ID
propertyPathstringYesProperty to keyframe (e.g., transform.position.x). One of: transform.position.x, transform.position.y, transform.scale.x, transform.scale.y, transform.rotation, transform.anchorPoint.x, transform.anchorPoint.y.
frameintegerYesFrame number
valuenumberYesKeyframe value
easingobjectNoEasing curve (defaults to linear)

add_layer

Add a new layer to the project. If project is in legacy frame mode, this switches it to layer mode.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
namestringNoLayer name (auto-generated if omitted)

app_add_content_frame

Add a content frame to a layer at an explicit time range (must not overlap).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
startFrameintegerYes—
durationFramesintegerYes—
namestringNo—
cellsarrayNo—
copyFromContentFrameIdstringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_add_layer

Add a content layer (with an empty content frame spanning the timeline).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
namestringNo—
aboveLayerIdstringNo—
emptybooleanNoCreate without a content frame
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_create_group

Group layers.

Kind: Canonical operation · Live status: Applied by the app — Needs at least two distinct layers that are not already in a group.

ParameterTypeRequiredDescription
namestringNo—
layerIdsarrayYesTwo or more distinct layers not already in a group (the app has no empty groups)
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_duplicate_layer

Duplicate a layer with all content, keyframes and effects.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_remove_content_frame

Delete a content frame.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
contentFrameIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_remove_layer

Delete a layer.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_set_active_layer

Select the active (editable) layer.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

create_group

Create a layer group to organize layers together.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app — Needs at least two distinct layers that are not already in a group.

ParameterTypeRequiredDescription
namestringNoGroup name
layerIdsarrayNoLayer IDs to include in the group

duplicate_content_frame

Duplicate a content frame immediately after itself (shifting later frames).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
contentFrameIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

duplicate_layer

Duplicate a layer with all its content frames and property tracks.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesID of the layer to duplicate

flatten_layer

Bake transforms/effects of a layer into its content frames.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_layer_properties

Get all transform property values for a layer at the current frame, including keyframe status.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
layerIdstringYesLayer ID

get_layers

Get all layers in the project with their metadata, content frame count, and property track info.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

merge_layers

Merge a layer down, or merge all visible layers.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
modestringYesOne of: down, visible.
layerIdstringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remove_blank_space

Close an empty gap on a layer at a frame (ripple earlier content forward).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
frameintegerYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remove_content_frame

Remove a content frame from a layer.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesLayer ID
contentFrameIdstringYesContent frame ID to remove

remove_keyframe

Remove a keyframe from a property track.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesLayer ID
trackIdstringYesProperty track ID
keyframeIdstringYesKeyframe ID to remove

remove_keyframes

Remove transform keyframes by frame or id, or clear the track.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringNo—
groupIdstringNo—
propertyPathstringYes—
framesarrayNoRemove keyframes at these frames
keyframeIdsarrayNo—
clearTrackbooleanNoRemove the whole property track
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remove_layer

Remove a layer by ID. Cannot remove the last remaining layer.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesID of the layer to remove

rename_layer

Rename a layer.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesID of the layer to rename
namestringYesNew layer name

reorder_layer

Move a layer to an index (0 = bottom of stack).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
toIndexintegerYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

reorder_layers

Move a layer from one z-order position to another. Index 0 = bottom layer.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
fromIndexintegerYesCurrent index of the layer
toIndexintegerYesTarget index to move to

seek

Move the playhead to an absolute frame.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
frameintegerYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_active_layer

Set which layer is active for drawing and editing operations.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesID of the layer to make active

set_frame_rate

Set the timeline frame rate (FPS). Preserves frame count — only changes playback speed.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
fpsintegerYesFrames per second

set_keyframes

Upsert transform keyframes on a layer or group property track (creates the track).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringNo—
groupIdstringNo—
propertyPathstringYes—
keyframesarrayYes—
replacebooleanNoReplace all existing keyframes on the track
loopbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_layer_visibility

Set visibility, solo, lock, or opacity on a layer.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesLayer ID
visiblebooleanNoSet visibility
solobooleanNoSet solo mode
lockedbooleanNoSet locked state
opacitynumberNoSet opacity (0-100)

set_onion_skin

Configure onion skinning.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
enabledbooleanNo—
previousFramesintegerNo—
nextFramesintegerNo—
allLayersbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_playback

Start/stop preview playback in the browser.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
playingbooleanYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_timeline

Set frame rate, duration, looping and work area.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
frameRateintegerNo—
maintainDurationbooleanNo—
durationFramesintegerNo—
loopingbooleanNo—
workAreaobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_timeline_duration

Set the total timeline duration in frames.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
durationFramesintegerYesTotal frames in timeline

split_content_frame

Split a content frame at an absolute frame.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
contentFrameIdstringYes—
atFrameintegerYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

trim_to_work_area

Trim the timeline to the enabled work area.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

ungroup

Dissolve a group, keeping its layers.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
groupIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

ungroup_layers

Dissolve a layer group, keeping the layers.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
groupIdstringYesGroup ID to dissolve

update_content_frame

Retime, rename, hide or label a content frame.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
contentFrameIdstringYes—
startFrameintegerNo—
durationFramesintegerNo—
namestringNo—
hiddenbooleanNo—
labelColorunionNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

update_group

Update group name, visibility, solo, lock, collapsed or static transform properties.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
groupIdstringYes—
namestringNo—
visiblebooleanNo—
solobooleanNo—
lockedbooleanNo—
collapsedbooleanNo—
staticPropertiesobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

update_layer

Update layer name, visibility, solo, lock, opacity, keyframe sync or static transform properties.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
namestringNo—
visiblebooleanNo—
solobooleanNo—
lockedbooleanNo—
opacitynumberNo—
syncKeyframesToFramesbooleanNo—
staticPropertiesobjectNoStatic transform values keyed by property path
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Selection

app_clear_selection

Clear all selections.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_get_selection

Current selection mask (cells, bounds) and clipboard availability.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

apply_to_selection

Apply an operation to all cells in the current selection

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
operationstringYesOperation to apply. One of: clear, fill, recolor.
charstringNoCharacter for fill operation
colorstringNoColor for fill/recolor
bgColorstringNoBackground color for fill/recolor

clear_selection

Clear the current selection (deselect)

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

No parameters.

copy_selection

Copy (or cut) the selected cells of a content frame to the app clipboard. Copy without cut does not create history.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
cutbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

delete_selection_content

Delete all cell content within the current selection

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

No parameters.

get_selection

Get the current selection bounds and contents

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
includeCellsbooleanNoInclude the actual cell data in the response
maxCellsintegerNoMaximum cells to include

move_selection

Move selected cells by dx/dy (selection follows).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
dxintegerYes—
dyintegerYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

paste_clipboard

Paste the app clipboard at a position (defaults to the original bounds).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
targetobjectNo—
xintegerNo—
yintegerNo—
transparentbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

select_by_color

Select cells that match specific criteria (magic wand style)

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
xintegerYesStarting X coordinate
yintegerYesStarting Y coordinate
matchCharbooleanNoMatch character
matchColorbooleanNoMatch foreground color
matchBgColorbooleanNoMatch background color
contiguousbooleanNoOnly select connected cells

select_rectangle

Select a rectangular region of the canvas

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
xintegerYesTop-left X coordinate
yintegerYesTop-left Y coordinate
widthintegerYesWidth of selection
heightintegerYesHeight of selection

set_selection

Select a rectangle, explicit cells, a polygon (lasso) or all cells matching a color/char (magic wand).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
modestringYesOne of: rectangle, cells, polygon, match, all.
regionobjectNo—
cellsarrayNo—
polygonarrayNo—
matchobjectNo—
contiguousFromobjectNo—
combinestringNoOne of: replace, add, subtract.
targetobjectNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Effects

add_effect

Add a procedural effect block to a layer, group or global track.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
ownerobjectYes—
effectTypestringYes—
startFrameintegerNo—
durationFramesintegerNo—
settingsobjectNoEffect settings keyed by property path (see get_catalog)
enabledbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

add_effect_block

Add a non-destructive procedural effect to a layer, group, or global effects. Available types: levels, hue-saturation, remap-colors, remap-characters, scatter, wave-warp, wiggle, motion-trails.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
ownerIdstring,nullYesLayer or group ID to add effect to, or null for global effects
effectTypestringYesType of effect to add. One of: levels, hue-saturation, remap-colors, remap-characters, scatter, wave-warp, wiggle, motion-trails.
startFrameintegerNoStart frame (defaults to 0)
durationFramesintegerNoDuration in frames (defaults to timeline duration)
settingsobjectNoInitial effect settings

add_effect_keyframe

Add a keyframe to a procedural effect property. Creates the property track if it doesn't exist.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYesEffect block ID
propertyPathstringYesProperty path (e.g., "amplitude", "hue", "strength")
frameintegerYesFrame number for the keyframe
valuenumber,boolean,stringYesKeyframe value

add_shader

Add a shader (post-processing) block.

Kind: Canonical operation · Live status: Applied by the app — Shaders affect rendered image and video exports, not read_cells.

ParameterTypeRequiredDescription
shaderTypestringYes—
startFrameintegerNo—
durationFramesintegerNo—
settingsobjectNoEffect settings keyed by property path (see get_catalog)
enabledbooleanNo—
indexintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

apply_effect

Apply a visual effect to the current frame or selection. Effects modify colors and/or characters.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
effectstringYesType of effect to apply. One of: levels, hue-saturation, remap-colors, remap-characters, scatter, invert, grayscale.
brightnessnumberNoBrightness adjustment (-100 to 100)
contrastnumberNoContrast adjustment (-100 to 100)
huenumberNoHue shift in degrees (-180 to 180)
saturationnumberNoSaturation adjustment (-100 to 100)
lightnessnumberNoLightness adjustment (-100 to 100)
colorMapobjectNoMap of old colors to new colors (e.g., {"#FF0000": "#00FF00"})
characterMapobjectNoMap of old characters to new (e.g., {"@": "#", "*": "+"})
targetPalettearrayNoTarget color palette for automatic remapping
scatterAmountnumberNoMaximum pixel displacement for scatter effect
frameIndexintegerNoFrame to apply effect to (defaults to current)
applyToSelectionbooleanNoOnly apply effect within current selection
affectForegroundbooleanNoApply color effects to foreground colors
affectBackgroundbooleanNoApply color effects to background colors

bake_effect

Apply an effect destructively to layer content and remove the block.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

batch_recolor

Replace one color with another across the entire frame or selection.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
oldColorstringYesColor to replace (hex format like #FF0000)
newColorstringYesNew color (hex format)
targetstringNoWhich colors to replace. One of: foreground, background, both.
frameIndexintegerNoFrame to modify (defaults to current)

batch_replace_char

Replace one character with another across the entire frame or selection.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
oldCharstringYesCharacter to replace
newCharstringYesNew character
frameIndexintegerNoFrame to modify (defaults to current)

get_effect_blocks

List all procedural effect blocks across layers, groups, and global effects. Shows effect type, timing, enabled status, and keyframe count.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
ownerIdstringNoFilter by owner layer/group ID. Omit to show all.

remove_effect

Remove an effect block.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remove_effect_block

Remove a procedural effect block from its owner (layer, group, or global).

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYesEffect block ID to remove

remove_effect_keyframe

Remove a keyframe from a procedural effect property track.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYesEffect block ID
keyframeIdstringYesKeyframe ID to remove

remove_effect_keyframes

Remove effect keyframes.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
propertyPathstringYes—
framesarrayNoRemove keyframes at these frames
keyframeIdsarrayNo—
clearTrackbooleanNoRemove the whole property track
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remove_shader

Remove a shader block.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remove_shader_keyframes

Remove shader keyframes.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
propertyPathstringYes—
framesarrayNoRemove keyframes at these frames
keyframeIdsarrayNo—
clearTrackbooleanNoRemove the whole property track
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_effect_keyframes

Upsert keyframes on an effect property.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
propertyPathstringYes—
keyframesarrayYes—
replacebooleanNoReplace all existing keyframes on the track
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_shader_keyframes

Upsert keyframes on a shader property.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
propertyPathstringYes—
keyframesarrayYes—
replacebooleanNoReplace all existing keyframes on the track
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

update_effect

Update effect settings, enabled state, timing, owner or stack index.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
startFrameintegerNo—
durationFramesintegerNo—
settingsobjectNoEffect settings keyed by property path (see get_catalog)
enabledbooleanNo—
ownerobjectNo—
indexintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

update_effect_block

Update a procedural effect block's settings, timing, or enabled state.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYesEffect block ID to update
startFrameintegerNoNew start frame
durationFramesintegerNoNew duration in frames
enabledbooleanNoEnable/disable the effect
settingsobjectNoSettings to merge (partial update)

update_shader

Update shader settings, enabled state, timing or chain index.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
blockIdstringYes—
startFrameintegerNo—
durationFramesintegerNo—
settingsobjectNoEffect settings keyed by property path (see get_catalog)
enabledbooleanNo—
indexintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Generators

add_animated_text

Add an Animated Text generator layer: crisp text with optional typewriter reveal, blink, or wave effects — all keyframeable. Text is centered unless x/y are given. For typewriter, the reveal runs across the span (or revealFrames). Use set_generator_property / set_generator_keyframes afterwards for finer control.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
textstringYesText to display (use \n for multiple lines)
xintegerNoLeft column of the text box (default: centered)
yintegerNoTop row of the text box (default: centered)
effectstringNoAnimation effect (default none). One of: none, typewriter, blink, wave.
revealFramesintegerNoTypewriter only: frames to fully reveal the text, starting at startFrame
cursorbooleanNoTypewriter only: show a cursor
textColorstringNoText color (default: current foreground color)
backgroundColorstringNoBackground color or "transparent"
alignstringNoLine alignment. One of: left, center, right.
namestringNoLayer name
startFrameintegerNoFirst visible frame (default 0)
durationFramesintegerNoVisible span length (default: to the end of the timeline)
settingsobjectNoAny other Animated Text settings (e.g. { "wave.amplitude": 2, "blink.onFrames": 6 })

add_generator_layer

Add a procedural generator layer (live, keyframeable — not baked cells). Uses canvas-aware defaults (centered origin/text, random seed) and merges any settings you pass. Span defaults to the whole timeline. Call list_generator_types first for property paths.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
generatorTypestringYesGenerator type: radio-waves, turbulent-noise, particle-physics, rain-drops, digital-rain, animated-text
namestringNoLayer name (default: generator name)
startFrameintegerNoFirst visible frame (default 0)
durationFramesintegerNoVisible span length (default: to the end of the timeline)
settingsobjectNoStatic settings keyed by property path (see list_generator_types), e.g. { "wave.amplitude": 3, "textColor": "#00ff88" }

app_add_generator_layer

Add a procedural generator layer, optionally with initial keyframe tracks (one undo entry). Returns layerId plus trackIds/keyframeIds in keyframes[] order.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
generatorTypestringYes—
namestringNo—
startFrameintegerNo—
durationFramesintegerNo—
settingsobjectNo—
keyframesarrayNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_bake_generator_layer

Bake generator output into content frames.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_randomize_generator_seed

Randomize generator seed.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
frameintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_remove_generator_keyframes

Remove generator keyframes.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
propertyPathstringYes—
framesarrayNoRemove keyframes at these frames
keyframeIdsarrayNo—
clearTrackbooleanNoRemove the whole property track
frameintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_render_generator_frames

Render generator output for frames (browser renderer).

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
layerIdstringYes—
framesarrayYes—
includeCellsbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_reset_generator

Reset generator settings to defaults.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_set_generator_keyframes

Upsert generator property keyframes.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
propertyPathstringYes—
keyframesarrayYes—
replacebooleanNoReplace all existing keyframes on the track
loopbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_set_generator_property

Set one generator property (keyframes it when animated or frame given).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
propertyPathstringYes—
valueobjectYes—
frameintegerNo—
applyEffectDefaultsbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_update_generator_layer

Update generator settings/timing/name/enabled.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYes—
settingsobjectNo—
startFrameintegerNo—
durationFramesintegerNo—
shiftKeyframesbooleanNo—
enabledbooleanNo—
namestringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

bake_generator_layer

Convert a generator layer into a normal content layer by rendering every frame of its span into editable cells (undoable in the app). The layer stops being procedural. Requires a live browser connection.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID

get_generator_catalog

Generator types with property schemas.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_generator_layers

List procedural generator layers, or inspect one in detail: its span, static settings, keyframed tracks, and the fully-resolved settings at a frame.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
layerIdstringNoGenerator layer to inspect in detail (omit to list all)
frameintegerNoFrame to resolve animated settings at (default: current frame)

get_generator_state

Generator source and evaluated settings at a frame.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
layerIdstringYes—
frameintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

list_generator_types

List procedural generator types (radio-waves, turbulent-noise, particle-physics, rain-drops, digital-rain, animated-text). Pass generatorType to get every keyframeable property: path, type, range, options, default, whether it animates smoothly or stepped, and when it is active (e.g. wave.* only applies when effect is "wave"). Use these paths with the other generator tools.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
generatorTypestringNoGenerator type to describe in full
categorystringNoOnly include properties in this category (e.g. "Mapping", "Animation")

preview_generator

Preview a single frame from a generator without applying to the project.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
generatorstringYesGenerator type. One of: digital-rain, radio-waves, turbulent-noise, particle-physics, rain-drops, static-noise, gradient.
colorstringNoPrimary color
densitynumberNoElement density
seedintegerNoRandom seed

randomize_generator_seed

Pick a new random seed for a generator (new variation of noise/particles/rain). If the seed is keyframed, keys the new seed at frame.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID
frameintegerNoFrame to key the seed at when the seed is animated (default: current frame)

remove_generator_keyframes

Remove keyframes from a generator property by frame or keyframe ID, or clear the whole track (clearTrack:true). When a track is removed (or becomes empty), the value at frame becomes the static setting, like the app.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID
propertyPathstringYesKeyframed property path
framesarrayNoRemove keyframes on these frames
keyframeIdsarrayNoRemove keyframes with these IDs
clearTrackbooleanNoRemove the entire track
frameintegerNoFrame whose value becomes static when the track is removed (default: current frame)

render_generator_frames

Render a generator layer's output at specific frames as ASCII text (generator only — no layer transforms, effects, or other layers). Use it to check what an animation looks like. Requires a live browser connection. Max 60 frames per call.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID
framesarrayNoFrames to render (default: current frame)
includeCellsbooleanNoAlso return per-cell char/color data (default false)

reset_generator

Reset a generator to its creation defaults and remove all of its keyframes (the seed is kept).

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID

run_generator

Generate procedural animation frames as baked, static cells (legacy). For live, keyframeable generator layers (Ascii-Motion 2.2.5+), use add_generator_layer / add_animated_text instead.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
generatorstringYesGenerator type. One of: digital-rain, radio-waves, turbulent-noise, particle-physics, rain-drops, static-noise, gradient.
frameCountintegerNoNumber of frames to generate
frameDurationintegerNoDuration of each frame in ms
colorstringNoPrimary color (hex)
secondaryColorstringNoSecondary color for gradients
backgroundColorstringNoBackground color
characterSetstringNoCustom characters to use (overrides default)
densitynumberNoDensity of elements (0-1)
speednumberNoAnimation speed multiplier
trailLengthintegerNoLength of trails
waveSpeednumberNoWave expansion speed
waveCountintegerNoNumber of simultaneous waves
centerXintegerNoWave center X (defaults to canvas center)
centerYintegerNoWave center Y (defaults to canvas center)
noiseScalenumberNoNoise scale (smaller = more detailed)
noiseSpeednumberNoHow fast noise evolves
particleCountintegerNoNumber of particles
gravitynumberNoGravity effect (-1 to 1)
replaceFramesbooleanNoReplace existing frames (otherwise append)
seedintegerNoRandom seed for reproducibility

set_generator_keyframes

Keyframe a generator property: add one or more keyframes (absolute frames) with easing. A keyframe on an existing frame is replaced. Use replace:true to discard the track's previous keyframes, and loop:true to repeat the keyframed range. Before the first and after the last keyframe the value holds.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID
propertyPathstringYesProperty path from list_generator_types
keyframesarrayYesKeyframes to add
replacebooleanNoRemove existing keyframes on this property first (default false)
loopbooleanNoLoop the keyframed range

set_generator_property

Set one generator property the way the app's inspector does at the playhead: if the property is keyframed, this adds/updates a keyframe at frame; otherwise it changes the static value. Animated Text extras: setting typewriter.units converts start/end so the reveal is unchanged, and setting effect to "typewriter" adds a default 0→100% reveal across the span (disable with applyEffectDefaults:false).

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID
propertyPathstringYesProperty path from list_generator_types (e.g. "wave.amplitude", "text", "mapping.characterPaletteId")
valueunionYesProperty value: number, boolean, string, hex color ("#ff8800"/"transparent"), select option value, or mapping object
frameintegerNoFrame for keyed edits (default: current frame)
applyEffectDefaultsbooleanNoAnimated Text: add default typewriter keyframes when switching effect to typewriter (default true)

update_generator_layer

Update a generator layer's static settings, visible span, enabled state, or name in one undoable step. Static settings are ignored for keyframed properties — use set_generator_property/set_generator_keyframes for those.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
layerIdstringYesGenerator layer ID
settingsobjectNoStatic settings keyed by property path (see list_generator_types), e.g. { "wave.amplitude": 3, "textColor": "#00ff88" }
startFrameintegerNoNew first visible frame
durationFramesintegerNoNew visible span length
shiftKeyframesbooleanNoWhen moving startFrame, shift all keyframes by the same amount (default false)
enabledbooleanNoEnable/disable rendering
namestringNoRename the layer

Colors and palettes

create_palette

Create a custom color palette (colors) or character palette (characters).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
namestringYes—
colorsarrayNo—
charactersarrayNo—
activatebooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

delete_palette

Delete a custom palette.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
paletteIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

duplicate_palette

Duplicate any palette as a custom palette.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
paletteIdstringYes—
namestringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

export_palette

Export a palette as the app JSON palette file.

Kind: Canonical operation · Live status: Saves an artifact

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
paletteIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_active_colors

Get the currently active foreground and background colors.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

get_character_palette

Get all characters from a specific palette.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
paletteIdstringYesPalette ID

get_color_palette

Get all colors from a specific palette.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
paletteIdstringYesPalette ID

import_palette

Import a palette from the app JSON palette format.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
datastringYes—
activatebooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

list_character_palettes

List all available character palettes for ASCII art.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

list_color_palettes

List all available color palettes.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

set_active_palette

Activate a color or character palette.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
paletteIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_background_color

Set the active background color.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
colorstringYesHex color or "transparent"

set_foreground_color

Set the active foreground (text) color.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
colorstringYesHex color (e.g., #FF0000)

set_selected_character

Set the active character used for drawing.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
characterstringYesSingle character

suggest_palette_for_style

Get palette recommendations for a specific style.

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
stylestringYesStyle theme. One of: terminal, retro, matrix, minimalist, detailed, colorful.

update_palette

Rename a custom palette or replace its colors/characters.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
kindstringYesOne of: color, character.
paletteIdstringYes—
namestringNo—
colorsarrayNo—
charactersarrayNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

History

app_redo

Redo (same as Cmd/Ctrl+Shift+Z).

Kind: Canonical operation · Live status: Applied by the app — Goes through the editor's own undo history.

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_undo

Undo the last app history entry (same as Cmd/Ctrl+Z).

Kind: Canonical operation · Live status: Applied by the app — Goes through the editor's own undo history.

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_history

Undo/redo availability and recent history descriptions.

Kind: Canonical operation · Live status: Read

ParameterTypeRequiredDescription
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_history_status

Check if undo/redo is available and what actions can be undone/redone

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

redo

Redo the last undone action

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app — Goes through the editor's own undo history.

No parameters.

undo

Undo the last action

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app — Goes through the editor's own undo history.

No parameters.

Projects and files

app_load_project

Replace the open project with a native session (v1 or v2) using the app importer.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
sessionobjectYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

app_new_project

Reset to a new blank project (same as File → New): one layer, cleared history, detached from cloud.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
widthintegerNo—
heightintegerNo—
namestringNo—
descriptionstringNo—
backgroundColorobjectNo—
frameRateintegerNo—
durationFramesintegerNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

get_project_info

Get information about the current project

Kind: Compatibility tool (2.3.0 name) · Live status: Read

No parameters.

list_project_files

List all .asciimtn project files in the project directory

Kind: Compatibility tool (2.3.0 name) · Live status: Read

ParameterTypeRequiredDescription
recursivebooleanNoSearch subdirectories

load_project

Load a project from a .asciimtn file

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app — Reads a local .asciimtn file. To load a native session object through the app importer, use app_load_project.

ParameterTypeRequiredDescription
filePathstringYesFile path relative to project directory

new_project

Create a new empty project, discarding any unsaved changes

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
widthintegerNoCanvas width
heightintegerNoCanvas height
namestringNoProject name
templatestringNoUse a preset template. One of: terminal-80x24, wide-120x30, square-40x40, small-32x16, large-160x50.

save_project

Save the current project to a .asciimtn file

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
filePathstringYesFile path relative to project directory (e.g., "my-art.asciimtn")

set_project_metadata

Set project name and/or description.

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
namestringNo—
descriptionstringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

set_project_name

Set the project name

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
namestringYesNew project name

Import

import_ascii_text

Import ASCII art from a plain text file onto the canvas.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app

ParameterTypeRequiredDescription
filePathstringYesPath to the text file
frameIndexintegerNoFrame to import to (defaults to current)
offsetXintegerNoX offset on canvas
offsetYintegerNoY offset on canvas
colorstringNoForeground color for imported text
bgColorstringNoBackground color for imported text
replaceSpacesbooleanNoWhether to set cells for space characters

import_image

Convert an image through the connected app, overlaying non-empty cells on the targeted content frame. Use import_media for a new layer, replacement or native palette options. Headless mode requires optional sharp or jimp.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app — Uses the app import pipeline when connected. Writes only non-empty converted cells, so existing artwork is kept. Options the app can't represent, such as exact source-color backgrounds and brightness dithering, return an error.

ParameterTypeRequiredDescription
filePathstringYesPath to the image file (.png, .jpg, .gif, .bmp)
targetWidthintegerNoTarget width in characters. If omitted, uses canvas width.
targetHeightintegerNoTarget height in characters. If omitted, maintains aspect ratio.
charsetstringNoCharacters to use for brightness mapping (dark to bright)
colorModestringNoHow to apply colors. One of: none, foreground, background, both.
ditheringstringNoDithering algorithm to use. One of: none, floyd-steinberg, ordered.
frameIndexintegerNoFrame to import to (defaults to current)
offsetXintegerNoX offset on canvas
offsetYintegerNoY offset on canvas

import_media

Convert an image/video (base64) to ASCII with the app import pipeline; place as a new layer or into a target content frame. Image-only overlay merges non-empty converted cells, preserving existing artwork elsewhere.

Kind: Canonical operation · Live status: Applied by the app — Converts with the app import pipeline. overlay mode is for images only; video overlay is rejected. Unknown conversion settings return an error.

ParameterTypeRequiredDescription
datastringYesBase64 file bytes
mimeTypestringYes—
filenamestringNo—
modestringNoOne of: new_layer, replace, overlay.
targetobjectNo—
widthintegerNo—
heightintegerNo—
matchFrameRatebooleanNo—
videoobjectNoVideo sampling window (video/* only). Omit to import every source frame.
settingsobjectNoImport settings overrides; allowed keys, enums and defaults: get_catalog tools.importSettings. Unsupported keys are rejected.
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

import_video

Import video frames through the connected app with an explicit sampling rate and time window. Headless video import is not supported.

Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app — Uses the app import pipeline when connected.

ParameterTypeRequiredDescription
filePathstringYesPath to the video file (.mp4, .webm, .mov, .gif)
targetWidthintegerNoTarget width in characters. If omitted, uses canvas width.
targetHeightintegerNoTarget height in characters. If omitted, maintains aspect ratio.
charsetstringNoCharacters to use for brightness mapping (dark to bright)
colorModestringNoHow to apply colors. One of: none, foreground, background, both.
fpsnumberNoFrames per second to extract
maxFramesintegerNoMaximum number of frames to import
startTimenumberNoStart time in seconds
durationnumberNoDuration in seconds (omit for entire video)

set_image_trace

Load/clear/configure the image-trace reference overlay (not saved in the project).

Kind: Canonical operation · Live status: Applied by the app

ParameterTypeRequiredDescription
datastringNoBase64 image/video bytes
mimeTypestringNo—
filenamestringNo—
clearbooleanNo—
enabledbooleanNo—
opacitynumberNo—
renderOrderstringNoOne of: behind, inFront.
frameOffsetintegerNo—
positionobjectNo—
scalenumberNo—
fitToCanvasbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Export

export

Render an export with the app exporters and return it as an artifact (no browser download). Allowed settings and defaults per format: get_catalog export_formats (unsupported keys are rejected). Animated formats accept frameRange "all" | {start,end} (end -1 = last); the result reports the exported frameRange and any derived componentName/packageName/modelName.

Kind: Canonical operation · Live status: Saves an artifact — Rendered by the app exporters and saved as an artifact; nothing is downloaded in the browser. There is no GIF export. Unsupported settings return an error.

ParameterTypeRequiredDescription
formatstringYesOne of: png, jpg, svg, webm, mp4, image_sequence, session, text, json, ansi, html, react, ink, opentui, bubbletea.
settingsobjectNo—
filenamestringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

export_ansi

Export the current frame with ANSI escape codes for terminal display.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
frameIndexintegerNoFrame to export (defaults to current)
colorModestringNoANSI color mode. One of: 16, 256, truecolor.

export_bubbletea

Export the current frame as a Bubbletea (Go TUI) component.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact — The generated Go type is named Model.

ParameterTypeRequiredDescription
filePathstringNoFile path to save (.go file). If omitted, returns content only.
frameIndexintegerNoFrame to export (defaults to current)
packageNamestringNoGo package name
modelNamestringNoModel name. The connected app supports "Model"; custom names are headless-only.
includeAnimationbooleanNoExport all frames with animation support

export_html

Export the animation as a self-contained HTML file with embedded animation player.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact — Output always includes playback controls and loops.

ParameterTypeRequiredDescription
filePathstringNoFile path to save to. If omitted, returns HTML content.
backgroundColorstringNoBackground color
fontFamilystringNoFont family. One of: monospace, courier, consolas.
fontSizeintegerNoFont size in pixels
animationSpeednumberNoAnimation speed multiplier
loopsunionNoNumber of loops
includeControlsbooleanNoInclude play/pause controls

export_image

Export the current frame as an image (PNG, JPG, or SVG). The browser renders the image at full quality. Requires live mode with a connected browser.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
filePathstringYesFile path to save (relative to project dir). Extension determines format (.png, .jpg, .svg).
formatstringNoImage format (auto-detected from file extension if omitted). One of: png, jpg, svg.
sizeMultipliernumberNoSize multiplier (1x, 2x, 3x, or 4x). One of: 1, 2, 3, 4.
includeGridbooleanNoInclude grid lines in the export
qualityintegerNoJPEG quality (1-100, only used for JPG format)
frameIndexintegerNoFrame to export (defaults to current frame)

export_ink

Export the current frame as an Ink (React CLI) component for Node.js terminal apps.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
filePathstringNoFile path to save (.tsx file). If omitted, returns content only.
frameIndexintegerNoFrame to export (defaults to current)
componentNamestringNoName for the component
includeAnimationbooleanNoExport all frames with animation support

export_json

Export the project as structured JSON data. Good for programmatic processing.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact — Output is sparse: only non-empty cells are listed.

ParameterTypeRequiredDescription
filePathstringNoFile path to save to (relative to project dir). If omitted, returns content only.
includeMetadatabooleanNoInclude project metadata
humanReadablebooleanNoPretty-print JSON
includeEmptyCellsbooleanNoInclude cells with default values

export_opentui

Export an OpenTUI TypeScript component through the connected app. The obsolete Python className option is not supported.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact — Produces TypeScript/TSX, not Python.

ParameterTypeRequiredDescription
filePathstringNoFile path to save (.tsx file). If omitted, returns an artifact.
frameIndexintegerNoFrame to export (defaults to current)
componentNamestringNoPascalCase alphanumeric component name
classNamestringNoRemoved Python export option; returns UNSUPPORTED. Use componentName instead.
includeAnimationbooleanNoExport all frames with animation support

export_react

Export the animation as a React component (JSX or TSX).

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
filePathstringNoFile path to save to
typescriptbooleanNoUse TypeScript (TSX)
includeControlsbooleanNoInclude play/pause controls
componentNamestringNoReact component name

export_session

Export the project as an .asciimtn session file (can be loaded by Ascii-Motion app).

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
filePathstringYesFile path for the .asciimtn file (relative to project dir)

export_text

Export the current frame or all frames as plain text (.txt). Returns ASCII art as text.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact

ParameterTypeRequiredDescription
filePathstringNoFile path to save to (relative to project dir). If omitted, returns content only.
frameIndexintegerNoFrame to export (defaults to current). Use "all" param for all frames.
allFramesbooleanNoExport all frames with separators
trimEmptybooleanNoRemove leading/trailing empty rows and columns
includeMetadatabooleanNoInclude frame names and timing as comments

export_video

Export the animation as a video file (MP4 or WebM). The browser renders each frame and encodes the video. Requires live mode with a connected browser.

Kind: Compatibility tool (2.3.0 name) · Live status: Saves an artifact — MP4 and WebM depend on the browser's codecs; verified in Chromium. There is no GIF export.

ParameterTypeRequiredDescription
filePathstringYesFile path to save (relative to project dir). Extension determines format (.mp4, .webm).
formatstringNoVideo format (auto-detected from file extension if omitted). One of: mp4, webm.
sizeMultipliernumberNoSize multiplier (1x, 2x, or 4x). One of: 1, 2, 4.
frameRateunionNoFrame rate in fps, or "auto" to use project frame rate
qualitystringNoEncoding quality. One of: high, medium, low.
includeGridbooleanNoInclude grid lines in the export
loopsstringNoNumber of times to loop the animation in the video. One of: none, 2x, 4x, 8x.
frameRangeobjectNoFrame range to export (defaults to all frames)

Artifacts

read_artifact

Read bounded artifact pages. Text defaults to UTF-8; binary uses base64. Continue at nextOffset.

Kind: Server tool · Live status: Read — Reads saved artifacts from the server's project directory. Works without a browser connection.

ParameterTypeRequiredDescription
artifactIdstringYes—
offsetintegerNo—
lengthintegerNo—
encodingstringNoOne of: auto, utf8, base64.

Cloud projects

delete_cloud_project

Move a cloud project to trash.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

download_cloud_project

Download a cloud project as a .asciimtn artifact without opening it.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

list_cloud_projects

List cloud projects (or trash).

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
deletedbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

open_cloud_project

Open a cloud project in the editor.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

permanently_delete_cloud_project

Permanently delete a trashed cloud project.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

publish_cloud_project

Publish a saved cloud project to the community gallery (preview rendered in browser).

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
titlestringYes—
descriptionstringNo—
tagsarrayNo—
allowRemixesbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

remix_cloud_project

Remix a published gallery project into your cloud projects and open it.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

restore_cloud_project

Restore a cloud project from trash.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

save_cloud_project

Save the open project to the cloud (update linked project, or create).

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
namestringNo—
descriptionstringNo—
saveAsNewbooleanNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

update_cloud_project_metadata

Rename or re-describe a cloud project.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
projectIdstringYes—
namestringNo—
descriptionstringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

upload_session_to_cloud

Upload a native session as a new cloud project.

Kind: Canonical operation · Live status: Needs sign-in (untested) — Implemented, but only tested signed out, where it returns AUTH_REQUIRED. Signed-in behavior and plan entitlements are untested.

ParameterTypeRequiredDescription
sessionobjectYes—
filenamestringNo—
expectedRevisionintegerNoOptional revision from an authoritative read; reject if the document changed before execution.

Resources

URIDescription
project://stateCompact authoritative document summary. Use get_document for the complete native session.
project://canvasCurrent timeline-frame cells; live reads use the compositor. Large results become paged artifacts.
project://framesContent-frame metadata. Content-frame ordinals are not timeline positions.
project://selectionCurrent authoritative selection and clipboard summary.
project://historyActual undo/redo history status.
project://asciiPlain text at the current timeline frame; composited in live mode.
project://layersLayer, group, timeline and procedural-block structure.
guide://llm-best-practicesBest practices for LLMs using ASCII Motion MCP. Read before complex animation tasks.
guide://tool-categoriesQuick reference of all available tool categories.

Prompts

  • create-animation — Create a simple animation with multiple frames Arguments: subject, frameCount, width, height.
  • import-and-animate — Import an image and create an animation from it Arguments: imagePath (required), animationType, frameCount.
  • generate-rain — Generate a digital rain (Matrix-style) animation Arguments: width, height, density, colors.
  • create-banner — Create an animated text banner or logo Arguments: text (required), style, animation.
  • apply-effects — Apply visual effects to existing ASCII art Arguments: effectType (required), intensity.
  • export-for-cli — Export ASCII art for use in terminal/CLI applications Arguments: framework, includeAnimation.
  • add-effects — Add procedural (non-destructive) effects to an animation for color adjustments, distortions, or character remapping Arguments: effectType, target, animated.

Updating this page

When a new ascii-motion-mcp version is published, capture its discovery output and connected-coverage results into content/mcp/, update DATA_FILE in scripts/generate-mcp-tools.mjs, and run npm run generate:mcp-tools followed by npm run check:mcp-docs.