ascii-motion-mcp

v3.0.1
ascii-motion-mcp Checked 3 days ago Published 1 month ago

MCP (Model Context Protocol) server for Ascii-Motion - enabling LLM-powered tools to create, animate, import, and export ASCII art

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

get_cell

Get the character and colors at a specific canvas position

ParameterTypeDescription
x *integerX coordinate (0-based, left to right)
y *integerY coordinate (0-based, top to bottom)
frameIndexintegerFrame index (defaults to current frame)

set_cell

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

ParameterTypeDescription
x *integerX coordinate (0-based)
y *integerY coordinate (0-based)
bgColorstringBackground color (hex or "transparent")
charstringSingle character to set
colorstringForeground color (hex, e.g., #FFFFFF)

clear_cell

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

ParameterTypeDescription
x *integerX coordinate
y *integerY coordinate

set_cells_batch

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

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

paste_ascii_block

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

ParameterTypeDescription
text *stringMulti-line ASCII text to paste
bgColorstringBackground color for all pasted characters
colorstringText color for all pasted characters
preserveSpacesbooleanIf true, spaces will overwrite existing cells. If false, spaces are transparent.
xintegerX position for top-left corner
yintegerY position for top-left corner

fill_region

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

ParameterTypeDescription
char *stringCharacter to fill with
x *integerStarting X coordinate
y *integerStarting Y coordinate
bgColorstringFill background color
colorstringFill color
contiguousbooleanIf true, only fills connected cells. If false, fills all matching cells.
matchBgColorbooleanOnly fill cells that match the starting cell background
matchCharbooleanOnly fill cells that match the starting cell character
matchColorbooleanOnly fill cells that match the starting cell color

resize_canvas

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

ParameterTypeDescription
height *integerNew height (4-100)
width *integerNew width (4-200)

clear_canvas

Clear all cells on the current frame, leaving it empty

list_frames

List all frames in the animation with their metadata

add_frame

Add a new frame to the animation

ParameterTypeDescription
atIndexintegerIndex to insert at (defaults to end)
copyFromIndexintegerCopy content from this frame index
durationintegerFrame duration in ms (default: 100)
namestringFrame name

delete_frame

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

ParameterTypeDescription
index *integerIndex of frame to delete

duplicate_frame

Duplicate a frame, inserting the copy immediately after the original

ParameterTypeDescription
index *integerIndex of frame to duplicate

go_to_frame

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

ParameterTypeDescription
index *integerFrame index to navigate to

set_frame_duration

Set the duration of a frame in milliseconds

ParameterTypeDescription
duration *integerDuration in milliseconds (10-60000)
index *integerFrame index

set_frame_name

Set or change the name of a frame

ParameterTypeDescription
index *integerFrame index
name *stringNew frame name

new_project

Create a new empty project, discarding any unsaved changes

ParameterTypeDescription
heightintegerCanvas height
namestringProject name
templatestringUse a preset template
widthintegerCanvas width

save_project

Save the current project to a .asciimtn file

ParameterTypeDescription
filePath *stringFile path relative to project directory (e.g., "my-art.asciimtn")

load_project

Load a project from a .asciimtn file

ParameterTypeDescription
filePath *stringFile path relative to project directory

get_project_info

Get information about the current project

set_project_name

Set the project name

ParameterTypeDescription
name *stringNew project name

list_project_files

List all .asciimtn project files in the project directory

ParameterTypeDescription
recursivebooleanSearch subdirectories

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.

ParameterTypeDescription
frameIndexintegerFrame index (defaults to current)

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.

ParameterTypeDescription
allFramesbooleanRender every frame with separators (maximum 24 frames)
colorModestringANSI color mode
frameIndexintegerFrame index (defaults to current). Cannot be combined with allFrames.
maxWidthintegerDownsample to at most this many character columns without upscaling
trimEmptybooleanTrim empty outer rows and columns before rendering

get_canvas_preview

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

ParameterTypeDescription
frameIndexintegerFrame index (defaults to current)
maxCellsintegerMaximum cells to return
offsetintegerCell offset from the previous page
regionobjectRegion to preview (defaults to entire canvas)

get_canvas_ascii

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

ParameterTypeDescription
frameIndexintegerFrame index (defaults to current)
overlayPreviousFramebooleanShow previous frame content as dim (for motion context)
regionobjectRegion to render (defaults to bounding box of content)
trimEmptybooleanTrim empty rows/columns around content

get_frame_diff

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

ParameterTypeDescription
frameA *integerFirst frame index
frameB *integerSecond frame index
maxCellsintegerMaximum changed cells per page
offsetintegerChanged-cell offset from the previous page

describe_animation

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

undo

Undo the last action

redo

Redo the last undone action

get_history_status

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

copy_frame_and_modify

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

ParameterTypeDescription
modifications *arrayCell modifications to apply to the new frame
sourceIndex *integerIndex of frame to copy
durationintegerDuration for the new frame
insertAtIndexintegerWhere to insert the new frame (defaults to after source)
namestringName for the new frame

shift_frame_content

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

ParameterTypeDescription
dx *integerHorizontal shift (positive = right, negative = left)
dy *integerVertical shift (positive = down, negative = up)
frameIndexintegerFrame to shift (defaults to current)
wrapbooleanIf true, content wraps around edges

flip_region

Flip/mirror content horizontally or vertically

ParameterTypeDescription
direction *stringFlip direction
frameIndexintegerFrame to flip (defaults to current)
regionobjectRegion to flip (defaults to entire canvas)

copy_region_to_frame

Copy a region of cells from one frame to another

ParameterTypeDescription
sourceFrame *integerSource frame index
sourceRegion *objectRegion to copy from source
targetFrame *integerTarget frame index
overwritebooleanIf true, overwrite existing cells in target
targetPositionobjectPosition to paste at in target (defaults to same position)

interpolate_frames

Generate intermediate frames between two keyframes. Creates smooth transitions.

ParameterTypeDescription
endFrame *integerEnding keyframe index
startFrame *integerStarting keyframe index
steps *integerNumber of intermediate frames to generate
methodstringInterpolation method

select_rectangle

Select a rectangular region of the canvas

ParameterTypeDescription
height *integerHeight of selection
width *integerWidth of selection
x *integerTop-left X coordinate
y *integerTop-left Y coordinate

select_by_color

Select cells that match specific criteria (magic wand style)

ParameterTypeDescription
x *integerStarting X coordinate
y *integerStarting Y coordinate
contiguousbooleanOnly select connected cells
matchBgColorbooleanMatch background color
matchCharbooleanMatch character
matchColorbooleanMatch foreground color

get_selection

Get the current selection bounds and contents

ParameterTypeDescription
includeCellsbooleanInclude the actual cell data in the response
maxCellsintegerMaximum cells to include

clear_selection

Clear the current selection (deselect)

apply_to_selection

Apply an operation to all cells in the current selection

ParameterTypeDescription
operation *stringOperation to apply
bgColorstringBackground color for fill/recolor
charstringCharacter for fill operation
colorstringColor for fill/recolor

delete_selection_content

Delete all cell content within the current selection

export_text

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

ParameterTypeDescription
allFramesbooleanExport all frames with separators
filePathstringFile path to save to (relative to project dir). If omitted, returns content only.
frameIndexintegerFrame to export (defaults to current). Use "all" param for all frames.
includeMetadatabooleanInclude frame names and timing as comments
trimEmptybooleanRemove leading/trailing empty rows and columns

export_json

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

ParameterTypeDescription
filePathstringFile path to save to (relative to project dir). If omitted, returns content only.
humanReadablebooleanPretty-print JSON
includeEmptyCellsbooleanInclude cells with default values
includeMetadatabooleanInclude project metadata

export_session

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

ParameterTypeDescription
filePath *stringFile path for the .asciimtn file (relative to project dir)

export_html

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

ParameterTypeDescription
animationSpeednumberAnimation speed multiplier
backgroundColorstringBackground color
filePathstringFile path to save to. If omitted, returns HTML content.
fontFamilystringFont family
fontSizeintegerFont size in pixels
includeControlsbooleanInclude play/pause controls
loopsNumber of loops

export_react

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

ParameterTypeDescription
componentNamestringReact component name
filePathstringFile path to save to
includeControlsbooleanInclude play/pause controls
typescriptbooleanUse TypeScript (TSX)

export_ansi

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

ParameterTypeDescription
colorModestringANSI color mode
frameIndexintegerFrame to export (defaults to current)

apply_effect

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

ParameterTypeDescription
effect *stringType of effect to apply
affectBackgroundbooleanApply color effects to background colors
affectForegroundbooleanApply color effects to foreground colors
applyToSelectionbooleanOnly apply effect within current selection
brightnessnumberBrightness adjustment (-100 to 100)
characterMapobjectMap of old characters to new (e.g., {"@": "#", "*": "+"})
colorMapobjectMap of old colors to new colors (e.g., {"#FF0000": "#00FF00"})
contrastnumberContrast adjustment (-100 to 100)
frameIndexintegerFrame to apply effect to (defaults to current)
huenumberHue shift in degrees (-180 to 180)
lightnessnumberLightness adjustment (-100 to 100)
saturationnumberSaturation adjustment (-100 to 100)
scatterAmountnumberMaximum pixel displacement for scatter effect
targetPalettearrayTarget color palette for automatic remapping

get_color_stats

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

ParameterTypeDescription
frameIndexintegerFrame to analyze (defaults to current)
includeBackgroundbooleanInclude background colors in analysis

batch_recolor

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

ParameterTypeDescription
newColor *stringNew color (hex format)
oldColor *stringColor to replace (hex format like #FF0000)
frameIndexintegerFrame to modify (defaults to current)
targetstringWhich colors to replace

batch_replace_char

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

ParameterTypeDescription
newChar *stringNew character
oldChar *stringCharacter to replace
frameIndexintegerFrame 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.

ParameterTypeDescription
ownerIdstringFilter by owner layer/group ID. Omit to show all.

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.

ParameterTypeDescription
effectType *stringType of effect to add
ownerId *string | nullLayer or group ID to add effect to, or null for global effects
durationFramesintegerDuration in frames (defaults to timeline duration)
settingsobjectInitial effect settings
startFrameintegerStart frame (defaults to 0)

update_effect_block

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

ParameterTypeDescription
blockId *stringEffect block ID to update
durationFramesintegerNew duration in frames
enabledbooleanEnable/disable the effect
settingsobjectSettings to merge (partial update)
startFrameintegerNew start frame

remove_effect_block

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

ParameterTypeDescription
blockId *stringEffect block ID to remove

add_effect_keyframe

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

ParameterTypeDescription
blockId *stringEffect block ID
frame *integerFrame number for the keyframe
propertyPath *stringProperty path (e.g., "amplitude", "hue", "strength")
value *number | boolean | stringKeyframe value

remove_effect_keyframe

Remove a keyframe from a procedural effect property track.

ParameterTypeDescription
blockId *stringEffect block ID
keyframeId *stringKeyframe ID to remove

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.

ParameterTypeDescription
generator *stringGenerator type
backgroundColorstringBackground color
centerXintegerWave center X (defaults to canvas center)
centerYintegerWave center Y (defaults to canvas center)
characterSetstringCustom characters to use (overrides default)
colorstringPrimary color (hex)
densitynumberDensity of elements (0-1)
frameCountintegerNumber of frames to generate
frameDurationintegerDuration of each frame in ms
gravitynumberGravity effect (-1 to 1)
noiseScalenumberNoise scale (smaller = more detailed)
noiseSpeednumberHow fast noise evolves
particleCountintegerNumber of particles
replaceFramesbooleanReplace existing frames (otherwise append)
secondaryColorstringSecondary color for gradients
seedintegerRandom seed for reproducibility
speednumberAnimation speed multiplier
trailLengthintegerLength of trails
waveCountintegerNumber of simultaneous waves
waveSpeednumberWave expansion speed

preview_generator

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

ParameterTypeDescription
generator *stringGenerator type
colorstringPrimary color
densitynumberElement density
seedintegerRandom seed

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.

ParameterTypeDescription
categorystringOnly include properties in this category (e.g. "Mapping", "Animation")
generatorTypestringGenerator type to describe in full

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.

ParameterTypeDescription
frameintegerFrame to resolve animated settings at (default: current frame)
layerIdstringGenerator layer to inspect in detail (omit to list all)

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.

ParameterTypeDescription
generatorType *stringGenerator type: radio-waves, turbulent-noise, particle-physics, rain-drops, digital-rain, animated-text
durationFramesintegerVisible span length (default: to the end of the timeline)
namestringLayer name (default: generator name)
settingsobjectStatic settings keyed by property path (see list_generator_types), e.g. { "wave.amplitude": 3, "textColor": "#00ff88" }
startFrameintegerFirst visible frame (default 0)

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.

ParameterTypeDescription
text *stringText to display (use \n for multiple lines)
alignstringLine alignment
backgroundColorstringBackground color or "transparent"
cursorbooleanTypewriter only: show a cursor
durationFramesintegerVisible span length (default: to the end of the timeline)
effectstringAnimation effect (default none)
namestringLayer name
revealFramesintegerTypewriter only: frames to fully reveal the text, starting at startFrame
settingsobjectAny other Animated Text settings (e.g. { "wave.amplitude": 2, "blink.onFrames": 6 })
startFrameintegerFirst visible frame (default 0)
textColorstringText color (default: current foreground color)
xintegerLeft column of the text box (default: centered)
yintegerTop row of the text box (default: centered)

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.

ParameterTypeDescription
layerId *stringGenerator layer ID
durationFramesintegerNew visible span length
enabledbooleanEnable/disable rendering
namestringRename the layer
settingsobjectStatic settings keyed by property path (see list_generator_types), e.g. { "wave.amplitude": 3, "textColor": "#00ff88" }
shiftKeyframesbooleanWhen moving startFrame, shift all keyframes by the same amount (default false)
startFrameintegerNew first visible frame

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).

ParameterTypeDescription
layerId *stringGenerator layer ID
propertyPath *stringProperty path from list_generator_types (e.g. "wave.amplitude", "text", "mapping.characterPaletteId")
value *Property value: number, boolean, string, hex color ("#ff8800"/"transparent"), select option value, or mapping object
applyEffectDefaultsbooleanAnimated Text: add default typewriter keyframes when switching effect to typewriter (default true)
frameintegerFrame for keyed edits (default: current frame)

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.

ParameterTypeDescription
keyframes *arrayKeyframes to add
layerId *stringGenerator layer ID
propertyPath *stringProperty path from list_generator_types
loopbooleanLoop the keyframed range
replacebooleanRemove existing keyframes on this property first (default false)

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.

ParameterTypeDescription
layerId *stringGenerator layer ID
propertyPath *stringKeyframed property path
clearTrackbooleanRemove the entire track
frameintegerFrame whose value becomes static when the track is removed (default: current frame)
framesarrayRemove keyframes on these frames
keyframeIdsarrayRemove keyframes with these IDs

reset_generator

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

ParameterTypeDescription
layerId *stringGenerator layer ID

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`.

ParameterTypeDescription
layerId *stringGenerator layer ID
frameintegerFrame to key the seed at when the seed is animated (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.

ParameterTypeDescription
layerId *stringGenerator layer ID
framesarrayFrames to render (default: current frame)
includeCellsbooleanAlso return per-cell char/color data (default false)

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.

ParameterTypeDescription
layerId *stringGenerator layer ID

export_ink

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

ParameterTypeDescription
componentNamestringName for the component
filePathstringFile path to save (.tsx file). If omitted, returns content only.
frameIndexintegerFrame to export (defaults to current)
includeAnimationbooleanExport all frames with animation support

export_bubbletea

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

ParameterTypeDescription
filePathstringFile path to save (.go file). If omitted, returns content only.
frameIndexintegerFrame to export (defaults to current)
includeAnimationbooleanExport all frames with animation support
modelNamestringModel name. The connected app supports "Model"; custom names are headless-only.
packageNamestringGo package name

export_opentui

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

ParameterTypeDescription
classNamestringRemoved Python export option; returns UNSUPPORTED. Use componentName instead.
componentNamestringPascalCase alphanumeric component name
filePathstringFile path to save (.tsx file). If omitted, returns an artifact.
frameIndexintegerFrame to export (defaults to current)
includeAnimationbooleanExport all frames with animation support

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.

ParameterTypeDescription
filePath *stringPath to the image file (.png, .jpg, .gif, .bmp)
charsetstringCharacters to use for brightness mapping (dark to bright)
colorModestringHow to apply colors
ditheringstringDithering algorithm to use
frameIndexintegerFrame to import to (defaults to current)
offsetXintegerX offset on canvas
offsetYintegerY offset on canvas
targetHeightintegerTarget height in characters. If omitted, maintains aspect ratio.
targetWidthintegerTarget width in characters. If omitted, uses canvas width.

import_video

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

ParameterTypeDescription
filePath *stringPath to the video file (.mp4, .webm, .mov, .gif)
charsetstringCharacters to use for brightness mapping (dark to bright)
colorModestringHow to apply colors
durationnumberDuration in seconds (omit for entire video)
fpsnumberFrames per second to extract
maxFramesintegerMaximum number of frames to import
startTimenumberStart time in seconds
targetHeightintegerTarget height in characters. If omitted, maintains aspect ratio.
targetWidthintegerTarget width in characters. If omitted, uses canvas width.

import_ascii_text

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

ParameterTypeDescription
filePath *stringPath to the text file
bgColorstringBackground color for imported text
colorstringForeground color for imported text
frameIndexintegerFrame to import to (defaults to current)
offsetXintegerX offset on canvas
offsetYintegerY offset on canvas
replaceSpacesbooleanWhether to set cells for space characters

list_character_palettes

List all available character palettes for ASCII art.

get_character_palette

Get all characters from a specific palette.

ParameterTypeDescription
paletteId *stringPalette ID

list_color_palettes

List all available color palettes.

get_color_palette

Get all colors from a specific palette.

ParameterTypeDescription
paletteId *stringPalette ID

get_active_colors

Get the currently active foreground and background colors.

set_foreground_color

Set the active foreground (text) color.

ParameterTypeDescription
color *stringHex color (e.g., #FF0000)

set_background_color

Set the active background color.

ParameterTypeDescription
color *stringHex color or "transparent"

set_selected_character

Set the active character used for drawing.

ParameterTypeDescription
character *stringSingle character

suggest_palette_for_style

Get palette recommendations for a specific style.

ParameterTypeDescription
style *stringStyle theme

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.

compare_frames

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

ParameterTypeDescription
frameA *integerIndex of first frame
frameB *integerIndex of second frame
maxCellsintegerMaximum cells per page
offsetintegerContinue from the previous nextOffset
showUnchangedbooleanInclude unchanged cells in output

get_layers

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

add_layer

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

ParameterTypeDescription
namestringLayer name (auto-generated if omitted)

remove_layer

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

ParameterTypeDescription
layerId *stringID of the layer to remove

duplicate_layer

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

ParameterTypeDescription
layerId *stringID of the layer to duplicate

set_active_layer

Set which layer is active for drawing and editing operations.

ParameterTypeDescription
layerId *stringID of the layer to make active

rename_layer

Rename a layer.

ParameterTypeDescription
layerId *stringID of the layer to rename
name *stringNew layer name

reorder_layers

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

ParameterTypeDescription
fromIndex *integerCurrent index of the layer
toIndex *integerTarget index to move to

set_layer_visibility

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

ParameterTypeDescription
layerId *stringLayer ID
lockedbooleanSet locked state
opacitynumberSet opacity (0-100)
solobooleanSet solo mode
visiblebooleanSet visibility

add_content_frame

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

ParameterTypeDescription
durationFrames *integerDuration in frames
layerId *stringLayer ID
startFrame *integerStarting frame number
dataobjectInitial cell data for the content frame

remove_content_frame

Remove a content frame from a layer.

ParameterTypeDescription
contentFrameId *stringContent frame ID to remove
layerId *stringLayer ID

add_keyframe

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

ParameterTypeDescription
frame *integerFrame number
layerId *stringLayer ID
propertyPath *stringProperty to keyframe (e.g., transform.position.x)
value *numberKeyframe value
easingobjectEasing curve (defaults to linear)

remove_keyframe

Remove a keyframe from a property track.

ParameterTypeDescription
keyframeId *stringKeyframe ID to remove
layerId *stringLayer ID
trackId *stringProperty track ID

get_layer_properties

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

ParameterTypeDescription
layerId *stringLayer ID

create_group

Create a layer group to organize layers together.

ParameterTypeDescription
layerIdsarrayLayer IDs to include in the group
namestringGroup name

ungroup_layers

Dissolve a layer group, keeping the layers.

ParameterTypeDescription
groupId *stringGroup ID to dissolve

set_frame_rate

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

ParameterTypeDescription
fps *integerFrames per second

set_timeline_duration

Set the total timeline duration in frames.

ParameterTypeDescription
durationFrames *integerTotal frames in timeline

get_connection_status

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

get_auth_token

Get the authentication token for browser connection.

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.

ParameterTypeDescription
filePath *stringFile path to save (relative to project dir). Extension determines format (.png, .jpg, .svg).
formatstringImage format (auto-detected from file extension if omitted)
frameIndexintegerFrame to export (defaults to current frame)
includeGridbooleanInclude grid lines in the export
qualityintegerJPEG quality (1-100, only used for JPG format)
sizeMultipliernumberSize multiplier (1x, 2x, 3x, or 4x)

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.

ParameterTypeDescription
filePath *stringFile path to save (relative to project dir). Extension determines format (.mp4, .webm).
formatstringVideo format (auto-detected from file extension if omitted)
frameRangeobjectFrame range to export (defaults to all frames)
frameRateFrame rate in fps, or "auto" to use project frame rate
includeGridbooleanInclude grid lines in the export
loopsstringNumber of times to loop the animation in the video
qualitystringEncoding quality
sizeMultipliernumberSize multiplier (1x, 2x, or 4x)

get_capabilities

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

get_document

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

ParameterTypeDescription
expectedRevisionintegerOptional 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.

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

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.

ParameterTypeDescription
contentFrameIdstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
formatstring
frameintegerDefaults to the playhead
includeEffectsboolean
layerIdstring
region
scopestring

get_catalog

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

ParameterTypeDescription
family *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

app_get_selection

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

get_history

Undo/redo availability and recent history descriptions.

ParameterTypeDescription
expectedRevisionintegerOptional 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.

ParameterTypeDescription
backgroundColor
descriptionstring
durationFramesinteger
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
frameRateinteger
heightinteger
namestring
widthinteger

app_load_project

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

ParameterTypeDescription
session *
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_project_metadata

Set project name and/or description.

ParameterTypeDescription
descriptionstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

app_resize_canvas

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

ParameterTypeDescription
height *integer
width *integer
anchor
expectedRevisionintegerOptional 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.

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
region

set_canvas_background

Set canvas background color ("transparent" allowed).

ParameterTypeDescription
color *
expectedRevisionintegerOptional 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.

ParameterTypeDescription
characterSpacingnumber
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
fontIdstring
fontSizenumber
lineSpacingnumber

set_tool_state

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

ParameterTypeDescription
backgroundColor
character
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
foregroundColor
toolstring

set_cells

Write or erase cells in one content frame.

ParameterTypeDescription
cells *array
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
target

clear_cells

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
region
target
useSelectionboolean

app_fill_region

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

ParameterTypeDescription
cell *
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
region
target
useSelectionboolean

import_text

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

ParameterTypeDescription
text *string
clearFirstboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
keepSpacesboolean
style
target
xinteger
yinteger

shift_content

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

ParameterTypeDescription
dx *integer
dy *integer
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
target
wrapboolean

flip_content

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

ParameterTypeDescription
axis *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
region
target
useSelectionboolean

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.

ParameterTypeDescription
match *object{} = all non-empty cells
replace *object
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
region
scopestring
target
useSelectionbooleanRestrict to the current selection mask (no coordinates need to be transferred)

draw_brush_stroke

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

ParameterTypeDescription
points *array
eraseboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
shapestring
sizeinteger
style
target

draw_line

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

ParameterTypeDescription
from *
to *
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
shapestring
sizeinteger
style
target

draw_shape

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

ParameterTypeDescription
region *
shape *string
autofillPaletteIdstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
fillModestring
filledboolean
strokeWidthnumber
style
target

draw_bezier

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

ParameterTypeDescription
points *array
autofillPaletteIdstring
closedboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
fillModestring
filledboolean
strokeTaperEndnumber
strokeTaperStartnumber
strokeWidthnumber
style
target

fill_area

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

ParameterTypeDescription
x *integer
y *integer
contiguousboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
matchobject
style
target

gradient_fill

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

ParameterTypeDescription
end *
start *
backgroundColor
character
contiguousboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
matchobject
region
seed
target
textColor
typestring

draw_ascii_box

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
patharrayPolyline vertices (horizontal/vertical/diagonal segments)
region
style
styleIdstringBox style id (see get_catalog tools)
target

place_text

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

ParameterTypeDescription
text *string
x *integer
y *integer
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
style
target

place_figlet_text

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

ParameterTypeDescription
text *string
x *integer
y *integer
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
fontstring
horizontalLayoutstring
style
target
transparentWhitespaceboolean
verticalLayoutstring

app_add_layer

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

ParameterTypeDescription
aboveLayerIdstring
emptybooleanCreate without a content frame
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

app_remove_layer

Delete a layer.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

app_duplicate_layer

Duplicate a layer with all content, keyframes and effects.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

reorder_layer

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

ParameterTypeDescription
layerId *string
toIndex *integer
expectedRevisionintegerOptional 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.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
lockedboolean
namestring
opacitynumber
soloboolean
staticPropertiesobjectStatic transform values keyed by property path
syncKeyframesToFramesboolean
visibleboolean

app_set_active_layer

Select the active (editable) layer.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

merge_layers

Merge a layer down, or merge all visible layers.

ParameterTypeDescription
mode *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
layerIdstring

flatten_layer

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

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

app_create_group

Group layers.

ParameterTypeDescription
layerIds *arrayTwo or more distinct layers not already in a group (the app has no empty groups)
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

ungroup

Dissolve a group, keeping its layers.

ParameterTypeDescription
groupId *string
expectedRevisionintegerOptional 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.

ParameterTypeDescription
groupId *string
collapsedboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
lockedboolean
namestring
soloboolean
staticPropertiesobject
visibleboolean

app_add_content_frame

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

ParameterTypeDescription
durationFrames *integer
layerId *string
startFrame *integer
cellsarray
copyFromContentFrameIdstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

app_remove_content_frame

Delete a content frame.

ParameterTypeDescription
contentFrameId *string
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

update_content_frame

Retime, rename, hide or label a content frame.

ParameterTypeDescription
contentFrameId *string
layerId *string
durationFramesinteger
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
hiddenboolean
labelColor
namestring
startFrameinteger

duplicate_content_frame

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

ParameterTypeDescription
contentFrameId *string
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

split_content_frame

Split a content frame at an absolute frame.

ParameterTypeDescription
atFrame *integer
contentFrameId *string
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_timeline

Set frame rate, duration, looping and work area.

ParameterTypeDescription
durationFramesinteger
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
frameRateinteger
loopingboolean
maintainDurationboolean
workArea

trim_to_work_area

Trim the timeline to the enabled work area.

ParameterTypeDescription
expectedRevisionintegerOptional 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).

ParameterTypeDescription
frame *integer
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

seek

Move the playhead to an absolute frame.

ParameterTypeDescription
frame *integer
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_playback

Start/stop preview playback in the browser.

ParameterTypeDescription
playing *boolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_onion_skin

Configure onion skinning.

ParameterTypeDescription
allLayersboolean
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
nextFramesinteger
previousFramesinteger

set_keyframes

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

ParameterTypeDescription
keyframes *array
propertyPath *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
groupIdstring
layerIdstring
loopboolean
replacebooleanReplace all existing keyframes on the track

remove_keyframes

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

ParameterTypeDescription
propertyPath *string
clearTrackbooleanRemove the whole property track
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
framesarrayRemove keyframes at these frames
groupIdstring
keyframeIdsarray
layerIdstring

add_effect

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

ParameterTypeDescription
effectType *string
owner *
durationFramesinteger
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
settingsobjectEffect settings keyed by property path (see get_catalog)
startFrameinteger

update_effect

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

ParameterTypeDescription
blockId *string
durationFramesinteger
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
indexinteger
owner
settingsobjectEffect settings keyed by property path (see get_catalog)
startFrameinteger

remove_effect

Remove an effect block.

ParameterTypeDescription
blockId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_effect_keyframes

Upsert keyframes on an effect property.

ParameterTypeDescription
blockId *string
keyframes *array
propertyPath *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
replacebooleanReplace all existing keyframes on the track

remove_effect_keyframes

Remove effect keyframes.

ParameterTypeDescription
blockId *string
propertyPath *string
clearTrackbooleanRemove the whole property track
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
framesarrayRemove keyframes at these frames
keyframeIdsarray

bake_effect

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

ParameterTypeDescription
blockId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

add_shader

Add a shader (post-processing) block.

ParameterTypeDescription
shaderType *string
durationFramesinteger
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
indexinteger
settingsobjectEffect settings keyed by property path (see get_catalog)
startFrameinteger

update_shader

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

ParameterTypeDescription
blockId *string
durationFramesinteger
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
indexinteger
settingsobjectEffect settings keyed by property path (see get_catalog)
startFrameinteger

remove_shader

Remove a shader block.

ParameterTypeDescription
blockId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_shader_keyframes

Upsert keyframes on a shader property.

ParameterTypeDescription
blockId *string
keyframes *array
propertyPath *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
replacebooleanReplace all existing keyframes on the track

remove_shader_keyframes

Remove shader keyframes.

ParameterTypeDescription
blockId *string
propertyPath *string
clearTrackbooleanRemove the whole property track
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
framesarrayRemove keyframes at these frames
keyframeIdsarray

get_generator_catalog

Generator types with property schemas.

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

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.

ParameterTypeDescription
generatorType *string
durationFramesinteger
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
keyframesarray
namestring
settingsobject
startFrameinteger

app_update_generator_layer

Update generator settings/timing/name/enabled.

ParameterTypeDescription
layerId *string
durationFramesinteger
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring
settingsobject
shiftKeyframesboolean
startFrameinteger

app_set_generator_property

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

ParameterTypeDescription
layerId *string
propertyPath *string
value *
applyEffectDefaultsboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
frameinteger

app_set_generator_keyframes

Upsert generator property keyframes.

ParameterTypeDescription
keyframes *array
layerId *string
propertyPath *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
loopboolean
replacebooleanReplace all existing keyframes on the track

app_remove_generator_keyframes

Remove generator keyframes.

ParameterTypeDescription
layerId *string
propertyPath *string
clearTrackbooleanRemove the whole property track
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
frameinteger
framesarrayRemove keyframes at these frames
keyframeIdsarray

app_reset_generator

Reset generator settings to defaults.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

app_randomize_generator_seed

Randomize generator seed.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
frameinteger

get_generator_state

Generator source and evaluated settings at a frame.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
frameinteger

app_render_generator_frames

Render generator output for frames (browser renderer).

ParameterTypeDescription
frames *array
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
includeCellsboolean

app_bake_generator_layer

Bake generator output into content frames.

ParameterTypeDescription
layerId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_selection

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

ParameterTypeDescription
mode *string
cellsarray
combinestring
contiguousFrom
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
matchobject
polygonarray
region
target

app_clear_selection

Clear all selections.

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

copy_selection

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

ParameterTypeDescription
cutboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
target

paste_clipboard

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
target
transparentboolean
xinteger
yinteger

move_selection

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

ParameterTypeDescription
dx *integer
dy *integer
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
target

app_undo

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

app_redo

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

ParameterTypeDescription
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

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.

ParameterTypeDescription
operations *array
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

set_active_palette

Activate a color or character palette.

ParameterTypeDescription
kind *string
paletteId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

create_palette

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

ParameterTypeDescription
kind *string
name *string
activateboolean
charactersarray
colorsarray
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

update_palette

Rename a custom palette or replace its colors/characters.

ParameterTypeDescription
kind *string
paletteId *string
charactersarray
colorsarray
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

delete_palette

Delete a custom palette.

ParameterTypeDescription
kind *string
paletteId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

duplicate_palette

Duplicate any palette as a custom palette.

ParameterTypeDescription
kind *string
paletteId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

import_palette

Import a palette from the app JSON palette format.

ParameterTypeDescription
data *string
kind *string
activateboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

export_palette

Export a palette as the app JSON palette file.

ParameterTypeDescription
kind *string
paletteId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

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.

ParameterTypeDescription
data *stringBase64 file bytes
mimeType *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
filenamestring
heightinteger
matchFrameRateboolean
modestring
settingsobjectImport settings overrides; allowed keys, enums and defaults: get_catalog tools.importSettings. Unsupported keys are rejected.
target
videoobjectVideo sampling window (video/* only). Omit to import every source frame.
widthinteger

set_image_trace

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

ParameterTypeDescription
clearboolean
datastringBase64 image/video bytes
enabledboolean
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
filenamestring
fitToCanvasboolean
frameOffsetinteger
mimeTypestring
opacitynumber
position
renderOrderstring
scalenumber

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.

ParameterTypeDescription
format *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
filenamestring
settingsobject

list_cloud_projects

List cloud projects (or trash).

ParameterTypeDescription
deletedboolean
expectedRevisionintegerOptional 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).

ParameterTypeDescription
descriptionstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring
saveAsNewboolean

open_cloud_project

Open a cloud project in the editor.

ParameterTypeDescription
projectId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

delete_cloud_project

Move a cloud project to trash.

ParameterTypeDescription
projectId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

restore_cloud_project

Restore a cloud project from trash.

ParameterTypeDescription
projectId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

permanently_delete_cloud_project

Permanently delete a trashed cloud project.

ParameterTypeDescription
projectId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

update_cloud_project_metadata

Rename or re-describe a cloud project.

ParameterTypeDescription
projectId *string
descriptionstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
namestring

download_cloud_project

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

ParameterTypeDescription
projectId *string
expectedRevisionintegerOptional 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.

ParameterTypeDescription
session *
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
filenamestring

publish_cloud_project

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

ParameterTypeDescription
projectId *string
title *string
allowRemixesboolean
descriptionstring
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.
tagsarray

remix_cloud_project

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

ParameterTypeDescription
projectId *string
expectedRevisionintegerOptional revision from an authoritative read; reject if the document changed before execution.

read_artifact

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

ParameterTypeDescription
artifactId *string
encodingstring
lengthinteger
offsetinteger