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.
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
| Status | Meaning in 3.0.0 | Tools |
|---|---|---|
| Applied by the app | The 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 result | Succeeds, but the app did not confirm the change. Read the note and check the result. | 1 |
| Read | Reads the project, a catalog or a saved artifact without changing anything. | 41 |
| Saves an artifact | Renders 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 (3)
- Inspection and preview (13)
- Batch operations (1)
- Canvas and cells (20)
- Drawing and text (9)
- Frames (7)
- Frame transforms (5)
- Layers, groups and timeline (41)
- Selection (12)
- Effects (20)
- Generators (25)
- Colors and palettes (16)
- History (6)
- Projects and files (9)
- Import (5)
- Export (12)
- Artifacts (1)
- Cloud projects (11)
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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameA | integer | Yes | Index of first frame |
frameB | integer | Yes | Index of second frame |
showUnchanged | boolean | No | Include unchanged cells in output |
maxCells | integer | No | Maximum cells per page |
offset | integer | No | Continue 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameIndex | integer | No | Frame index (defaults to current) |
region | object | No | Region to render (defaults to bounding box of content) |
trimEmpty | boolean | No | Trim empty rows/columns around content |
overlayPreviousFrame | boolean | No | Show 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameIndex | integer | No | Frame index (defaults to current) |
region | object | No | Region to preview (defaults to entire canvas) |
maxCells | integer | No | Maximum cells to return |
offset | integer | No | Cell 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameIndex | integer | No | Frame index (defaults to current). Cannot be combined with allFrames. |
allFrames | boolean | No | Render every frame with separators (maximum 24 frames) |
colorMode | string | No | ANSI color mode. One of: 16, 256, truecolor. |
maxWidth | integer | No | Downsample to at most this many character columns without upscaling |
trimEmpty | boolean | No | Trim 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameIndex | integer | No | Frame index (defaults to current) |
get_capabilities
Contract/version info, supported operations, runtime catalogs summary, auth and entitlement state.
Kind: Canonical operation · Live status: Read
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
family | string | Yes | One of: effects, shaders, generators, palettes, export_formats, tools, fonts. |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameIndex | integer | No | Frame to analyze (defaults to current) |
includeBackground | boolean | No | Include 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameA | integer | Yes | First frame index |
frameB | integer | Yes | Second frame index |
maxCells | integer | No | Maximum changed cells per page |
offset | integer | No | Changed-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
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | string | No | One of: composite, layer. |
frame | integer | No | Defaults to the playhead |
layerId | string | No | — |
contentFrameId | string | No | — |
region | object | No | — |
format | string | No | One of: text, cells. |
includeEffects | boolean | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
operations | array | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
region | object | No | — |
useSelection | boolean | No | — |
cell | object | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
width | integer | Yes | — |
height | integer | Yes | — |
anchor | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | X coordinate |
y | integer | Yes | Y coordinate |
clear_cells
Erase a region, the current selection, or the whole content frame.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
region | object | No | — |
useSelection | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
region | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | Starting X coordinate |
y | integer | Yes | Starting Y coordinate |
char | string | Yes | Character to fill with |
color | string | No | Fill color |
bgColor | string | No | Fill background color |
contiguous | boolean | No | If true, only fills connected cells. If false, fills all matching cells. |
matchChar | boolean | No | Only fill cells that match the starting cell character |
matchColor | boolean | No | Only fill cells that match the starting cell color |
matchBgColor | boolean | No | Only 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
axis | string | Yes | One of: horizontal, vertical. |
region | object | No | — |
useSelection | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | X coordinate (0-based, left to right) |
y | integer | Yes | Y coordinate (0-based, top to bottom) |
frameIndex | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
text | string | Yes | — |
x | integer | No | — |
y | integer | No | — |
style | object | No | — |
keepSpaces | boolean | No | — |
clearFirst | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Multi-line ASCII text to paste |
x | integer | No | X position for top-left corner |
y | integer | No | Y position for top-left corner |
color | string | No | Text color for all pasted characters |
bgColor | string | No | Background color for all pasted characters |
preserveSpaces | boolean | No | If 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
scope | string | No | One of: content_frame, layer, project. |
region | object | No | — |
useSelection | boolean | No | Restrict to the current selection mask (no coordinates need to be transferred) |
match | object | Yes | {} = all non-empty cells |
replace | object | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
width | integer | Yes | New width (4-200) |
height | integer | Yes | New height (4-100) |
set_canvas_background
Set canvas background color ("transparent" allowed).
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
color | object | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | X coordinate (0-based) |
y | integer | Yes | Y coordinate (0-based) |
char | string | No | Single character to set |
color | string | No | Foreground color (hex, e.g., #FFFFFF) |
bgColor | string | No | Background color (hex or "transparent") |
set_cells
Write or erase cells in one content frame.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
cells | array | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
cells | array | Yes | Array 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
| Parameter | Type | Required | Description |
|---|---|---|---|
character | object | No | — |
foregroundColor | object | No | — |
backgroundColor | object | No | — |
tool | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
fontId | string | No | — |
fontSize | number | No | — |
characterSpacing | number | No | — |
lineSpacing | number | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
dx | integer | Yes | — |
dy | integer | Yes | — |
wrap | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
styleId | string | No | Box style id (see get_catalog tools) |
region | object | No | — |
path | array | No | Polyline vertices (horizontal/vertical/diagonal segments) |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
points | array | Yes | — |
closed | boolean | No | — |
filled | boolean | No | — |
fillMode | string | No | One of: constant, palette, autofill, lineart. |
autofillPaletteId | string | No | — |
strokeWidth | number | No | — |
strokeTaperStart | number | No | — |
strokeTaperEnd | number | No | — |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
points | array | Yes | — |
size | integer | No | — |
shape | string | No | One of: circle, square, horizontal, vertical. |
style | object | No | — |
erase | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
from | object | Yes | — |
to | object | Yes | — |
size | integer | No | — |
shape | string | No | One of: circle, square, horizontal, vertical. |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
shape | string | Yes | One of: rectangle, ellipse. |
region | object | Yes | — |
filled | boolean | No | — |
fillMode | string | No | One of: constant, palette, autofill, lineart. |
autofillPaletteId | string | No | — |
strokeWidth | number | No | — |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
x | integer | Yes | — |
y | integer | Yes | — |
contiguous | boolean | No | — |
match | object | No | — |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
type | string | No | One of: linear, radial. |
start | object | Yes | — |
end | object | Yes | — |
seed | object | No | — |
region | object | No | — |
contiguous | boolean | No | — |
match | object | No | — |
character | object | No | — |
textColor | object | No | — |
backgroundColor | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
x | integer | Yes | — |
y | integer | Yes | — |
text | string | Yes | — |
font | string | No | — |
horizontalLayout | string | No | One of: normal, narrow, squeezed, fitted, wide. |
verticalLayout | string | No | One of: normal, narrow, squeezed, fitted, wide. |
transparentWhitespace | boolean | No | — |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
x | integer | Yes | — |
y | integer | Yes | — |
text | string | Yes | — |
style | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
atIndex | integer | No | Index to insert at (defaults to end) |
duration | integer | No | Frame duration in ms (default: 100) |
copyFromIndex | integer | No | Copy content from this frame index |
name | string | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Index 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
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Index 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
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Frame index |
duration | integer | Yes | Duration 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
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Frame index |
name | string | Yes | New 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
| Parameter | Type | Required | Description |
|---|---|---|---|
sourceIndex | integer | Yes | Index of frame to copy |
modifications | array | Yes | Cell modifications to apply to the new frame |
insertAtIndex | integer | No | Where to insert the new frame (defaults to after source) |
name | string | No | Name for the new frame |
duration | integer | No | Duration 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
sourceFrame | integer | Yes | Source frame index |
targetFrame | integer | Yes | Target frame index |
sourceRegion | object | Yes | Region to copy from source |
targetPosition | object | No | Position to paste at in target (defaults to same position) |
overwrite | boolean | No | If 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
| Parameter | Type | Required | Description |
|---|---|---|---|
direction | string | Yes | Flip direction. One of: horizontal, vertical. |
region | object | No | Region to flip (defaults to entire canvas) |
frameIndex | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
startFrame | integer | Yes | Starting keyframe index |
endFrame | integer | Yes | Ending keyframe index |
steps | integer | Yes | Number of intermediate frames to generate |
method | string | No | Interpolation 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
| Parameter | Type | Required | Description |
|---|---|---|---|
dx | integer | Yes | Horizontal shift (positive = right, negative = left) |
dy | integer | Yes | Vertical shift (positive = down, negative = up) |
wrap | boolean | No | If true, content wraps around edges |
frameIndex | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Layer ID |
startFrame | integer | Yes | Starting frame number |
durationFrames | integer | Yes | Duration in frames |
data | object | No | Initial 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Layer ID |
propertyPath | string | Yes | Property 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. |
frame | integer | Yes | Frame number |
value | number | Yes | Keyframe value |
easing | object | No | Easing 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
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Layer 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
startFrame | integer | Yes | — |
durationFrames | integer | Yes | — |
name | string | No | — |
cells | array | No | — |
copyFromContentFrameId | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
aboveLayerId | string | No | — |
empty | boolean | No | Create without a content frame |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
layerIds | array | Yes | Two or more distinct layers not already in a group (the app has no empty groups) |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
contentFrameId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Group name |
layerIds | array | No | Layer 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
contentFrameId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | ID 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Layer 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
| Parameter | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | One of: down, visible. |
layerId | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
frame | integer | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Layer ID |
contentFrameId | string | Yes | Content 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Layer ID |
trackId | string | Yes | Property track ID |
keyframeId | string | Yes | Keyframe 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | No | — |
groupId | string | No | — |
propertyPath | string | Yes | — |
frames | array | No | Remove keyframes at these frames |
keyframeIds | array | No | — |
clearTrack | boolean | No | Remove the whole property track |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | ID of the layer to remove |
rename_layer
Rename a layer.
Kind: Compatibility tool (2.3.0 name) · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | ID of the layer to rename |
name | string | Yes | New layer name |
reorder_layer
Move a layer to an index (0 = bottom of stack).
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
toIndex | integer | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
fromIndex | integer | Yes | Current index of the layer |
toIndex | integer | Yes | Target index to move to |
seek
Move the playhead to an absolute frame.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
frame | integer | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | ID 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
| Parameter | Type | Required | Description |
|---|---|---|---|
fps | integer | Yes | Frames 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | No | — |
groupId | string | No | — |
propertyPath | string | Yes | — |
keyframes | array | Yes | — |
replace | boolean | No | Replace all existing keyframes on the track |
loop | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Layer ID |
visible | boolean | No | Set visibility |
solo | boolean | No | Set solo mode |
locked | boolean | No | Set locked state |
opacity | number | No | Set opacity (0-100) |
set_onion_skin
Configure onion skinning.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
enabled | boolean | No | — |
previousFrames | integer | No | — |
nextFrames | integer | No | — |
allLayers | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
playing | boolean | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameRate | integer | No | — |
maintainDuration | boolean | No | — |
durationFrames | integer | No | — |
looping | boolean | No | — |
workArea | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
durationFrames | integer | Yes | Total frames in timeline |
split_content_frame
Split a content frame at an absolute frame.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
contentFrameId | string | Yes | — |
atFrame | integer | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
groupId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
groupId | string | Yes | Group ID to dissolve |
update_content_frame
Retime, rename, hide or label a content frame.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
contentFrameId | string | Yes | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
name | string | No | — |
hidden | boolean | No | — |
labelColor | union | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
groupId | string | Yes | — |
name | string | No | — |
visible | boolean | No | — |
solo | boolean | No | — |
locked | boolean | No | — |
collapsed | boolean | No | — |
staticProperties | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
name | string | No | — |
visible | boolean | No | — |
solo | boolean | No | — |
locked | boolean | No | — |
opacity | number | No | — |
syncKeyframesToFrames | boolean | No | — |
staticProperties | object | No | Static transform values keyed by property path |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
operation | string | Yes | Operation to apply. One of: clear, fill, recolor. |
char | string | No | Character for fill operation |
color | string | No | Color for fill/recolor |
bgColor | string | No | Background 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
cut | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
includeCells | boolean | No | Include the actual cell data in the response |
maxCells | integer | No | Maximum cells to include |
move_selection
Move selected cells by dx/dy (selection follows).
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
dx | integer | Yes | — |
dy | integer | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
target | object | No | — |
x | integer | No | — |
y | integer | No | — |
transparent | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | Starting X coordinate |
y | integer | Yes | Starting Y coordinate |
matchChar | boolean | No | Match character |
matchColor | boolean | No | Match foreground color |
matchBgColor | boolean | No | Match background color |
contiguous | boolean | No | Only 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
| Parameter | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | Top-left X coordinate |
y | integer | Yes | Top-left Y coordinate |
width | integer | Yes | Width of selection |
height | integer | Yes | Height 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
| Parameter | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | One of: rectangle, cells, polygon, match, all. |
region | object | No | — |
cells | array | No | — |
polygon | array | No | — |
match | object | No | — |
contiguousFrom | object | No | — |
combine | string | No | One of: replace, add, subtract. |
target | object | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | object | Yes | — |
effectType | string | Yes | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
settings | object | No | Effect settings keyed by property path (see get_catalog) |
enabled | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
ownerId | string,null | Yes | Layer or group ID to add effect to, or null for global effects |
effectType | string | Yes | Type of effect to add. One of: levels, hue-saturation, remap-colors, remap-characters, scatter, wave-warp, wiggle, motion-trails. |
startFrame | integer | No | Start frame (defaults to 0) |
durationFrames | integer | No | Duration in frames (defaults to timeline duration) |
settings | object | No | Initial 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | Effect block ID |
propertyPath | string | Yes | Property path (e.g., "amplitude", "hue", "strength") |
frame | integer | Yes | Frame number for the keyframe |
value | number,boolean,string | Yes | Keyframe 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
shaderType | string | Yes | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
settings | object | No | Effect settings keyed by property path (see get_catalog) |
enabled | boolean | No | — |
index | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
effect | string | Yes | Type of effect to apply. One of: levels, hue-saturation, remap-colors, remap-characters, scatter, invert, grayscale. |
brightness | number | No | Brightness adjustment (-100 to 100) |
contrast | number | No | Contrast adjustment (-100 to 100) |
hue | number | No | Hue shift in degrees (-180 to 180) |
saturation | number | No | Saturation adjustment (-100 to 100) |
lightness | number | No | Lightness adjustment (-100 to 100) |
colorMap | object | No | Map of old colors to new colors (e.g., {"#FF0000": "#00FF00"}) |
characterMap | object | No | Map of old characters to new (e.g., {"@": "#", "*": "+"}) |
targetPalette | array | No | Target color palette for automatic remapping |
scatterAmount | number | No | Maximum pixel displacement for scatter effect |
frameIndex | integer | No | Frame to apply effect to (defaults to current) |
applyToSelection | boolean | No | Only apply effect within current selection |
affectForeground | boolean | No | Apply color effects to foreground colors |
affectBackground | boolean | No | Apply 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
oldColor | string | Yes | Color to replace (hex format like #FF0000) |
newColor | string | Yes | New color (hex format) |
target | string | No | Which colors to replace. One of: foreground, background, both. |
frameIndex | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
oldChar | string | Yes | Character to replace |
newChar | string | Yes | New character |
frameIndex | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
ownerId | string | No | Filter by owner layer/group ID. Omit to show all. |
remove_effect
Remove an effect block.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | Effect 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | Effect block ID |
keyframeId | string | Yes | Keyframe ID to remove |
remove_effect_keyframes
Remove effect keyframes.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
propertyPath | string | Yes | — |
frames | array | No | Remove keyframes at these frames |
keyframeIds | array | No | — |
clearTrack | boolean | No | Remove the whole property track |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
propertyPath | string | Yes | — |
frames | array | No | Remove keyframes at these frames |
keyframeIds | array | No | — |
clearTrack | boolean | No | Remove the whole property track |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
propertyPath | string | Yes | — |
keyframes | array | Yes | — |
replace | boolean | No | Replace all existing keyframes on the track |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
propertyPath | string | Yes | — |
keyframes | array | Yes | — |
replace | boolean | No | Replace all existing keyframes on the track |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
settings | object | No | Effect settings keyed by property path (see get_catalog) |
enabled | boolean | No | — |
owner | object | No | — |
index | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | Effect block ID to update |
startFrame | integer | No | New start frame |
durationFrames | integer | No | New duration in frames |
enabled | boolean | No | Enable/disable the effect |
settings | object | No | Settings to merge (partial update) |
update_shader
Update shader settings, enabled state, timing or chain index.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
blockId | string | Yes | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
settings | object | No | Effect settings keyed by property path (see get_catalog) |
enabled | boolean | No | — |
index | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to display (use \n for multiple lines) |
x | integer | No | Left column of the text box (default: centered) |
y | integer | No | Top row of the text box (default: centered) |
effect | string | No | Animation effect (default none). One of: none, typewriter, blink, wave. |
revealFrames | integer | No | Typewriter only: frames to fully reveal the text, starting at startFrame |
cursor | boolean | No | Typewriter only: show a cursor |
textColor | string | No | Text color (default: current foreground color) |
backgroundColor | string | No | Background color or "transparent" |
align | string | No | Line alignment. One of: left, center, right. |
name | string | No | Layer name |
startFrame | integer | No | First visible frame (default 0) |
durationFrames | integer | No | Visible span length (default: to the end of the timeline) |
settings | object | No | Any 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
| Parameter | Type | Required | Description |
|---|---|---|---|
generatorType | string | Yes | Generator type: radio-waves, turbulent-noise, particle-physics, rain-drops, digital-rain, animated-text |
name | string | No | Layer name (default: generator name) |
startFrame | integer | No | First visible frame (default 0) |
durationFrames | integer | No | Visible span length (default: to the end of the timeline) |
settings | object | No | Static 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
| Parameter | Type | Required | Description |
|---|---|---|---|
generatorType | string | Yes | — |
name | string | No | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
settings | object | No | — |
keyframes | array | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
frame | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
propertyPath | string | Yes | — |
frames | array | No | Remove keyframes at these frames |
keyframeIds | array | No | — |
clearTrack | boolean | No | Remove the whole property track |
frame | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
frames | array | Yes | — |
includeCells | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
propertyPath | string | Yes | — |
keyframes | array | Yes | — |
replace | boolean | No | Replace all existing keyframes on the track |
loop | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
propertyPath | string | Yes | — |
value | object | Yes | — |
frame | integer | No | — |
applyEffectDefaults | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
settings | object | No | — |
startFrame | integer | No | — |
durationFrames | integer | No | — |
shiftKeyframes | boolean | No | — |
enabled | boolean | No | — |
name | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
get_generator_catalog
Generator types with property schemas.
Kind: Canonical operation · Live status: Read
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | No | Generator layer to inspect in detail (omit to list all) |
frame | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | — |
frame | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
generatorType | string | No | Generator type to describe in full |
category | string | No | Only 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
| Parameter | Type | Required | Description |
|---|---|---|---|
generator | string | Yes | Generator type. One of: digital-rain, radio-waves, turbulent-noise, particle-physics, rain-drops, static-noise, gradient. |
color | string | No | Primary color |
density | number | No | Element density |
seed | integer | No | Random 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
frame | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
propertyPath | string | Yes | Keyframed property path |
frames | array | No | Remove keyframes on these frames |
keyframeIds | array | No | Remove keyframes with these IDs |
clearTrack | boolean | No | Remove the entire track |
frame | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
frames | array | No | Frames to render (default: current frame) |
includeCells | boolean | No | Also 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator 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
| Parameter | Type | Required | Description |
|---|---|---|---|
generator | string | Yes | Generator type. One of: digital-rain, radio-waves, turbulent-noise, particle-physics, rain-drops, static-noise, gradient. |
frameCount | integer | No | Number of frames to generate |
frameDuration | integer | No | Duration of each frame in ms |
color | string | No | Primary color (hex) |
secondaryColor | string | No | Secondary color for gradients |
backgroundColor | string | No | Background color |
characterSet | string | No | Custom characters to use (overrides default) |
density | number | No | Density of elements (0-1) |
speed | number | No | Animation speed multiplier |
trailLength | integer | No | Length of trails |
waveSpeed | number | No | Wave expansion speed |
waveCount | integer | No | Number of simultaneous waves |
centerX | integer | No | Wave center X (defaults to canvas center) |
centerY | integer | No | Wave center Y (defaults to canvas center) |
noiseScale | number | No | Noise scale (smaller = more detailed) |
noiseSpeed | number | No | How fast noise evolves |
particleCount | integer | No | Number of particles |
gravity | number | No | Gravity effect (-1 to 1) |
replaceFrames | boolean | No | Replace existing frames (otherwise append) |
seed | integer | No | Random 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
propertyPath | string | Yes | Property path from list_generator_types |
keyframes | array | Yes | Keyframes to add |
replace | boolean | No | Remove existing keyframes on this property first (default false) |
loop | boolean | No | Loop 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
propertyPath | string | Yes | Property path from list_generator_types (e.g. "wave.amplitude", "text", "mapping.characterPaletteId") |
value | union | Yes | Property value: number, boolean, string, hex color ("#ff8800"/"transparent"), select option value, or mapping object |
frame | integer | No | Frame for keyed edits (default: current frame) |
applyEffectDefaults | boolean | No | Animated 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
| Parameter | Type | Required | Description |
|---|---|---|---|
layerId | string | Yes | Generator layer ID |
settings | object | No | Static settings keyed by property path (see list_generator_types), e.g. { "wave.amplitude": 3, "textColor": "#00ff88" } |
startFrame | integer | No | New first visible frame |
durationFrames | integer | No | New visible span length |
shiftKeyframes | boolean | No | When moving startFrame, shift all keyframes by the same amount (default false) |
enabled | boolean | No | Enable/disable rendering |
name | string | No | Rename 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
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
name | string | Yes | — |
colors | array | No | — |
characters | array | No | — |
activate | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
paletteId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
paletteId | string | Yes | — |
name | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
paletteId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
paletteId | string | Yes | Palette ID |
get_color_palette
Get all colors from a specific palette.
Kind: Compatibility tool (2.3.0 name) · Live status: Read
| Parameter | Type | Required | Description |
|---|---|---|---|
paletteId | string | Yes | Palette ID |
import_palette
Import a palette from the app JSON palette format.
Kind: Canonical operation · Live status: Applied by the app
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
data | string | Yes | — |
activate | boolean | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
paletteId | string | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
color | string | Yes | Hex 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
| Parameter | Type | Required | Description |
|---|---|---|---|
color | string | Yes | Hex 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
| Parameter | Type | Required | Description |
|---|---|---|---|
character | string | Yes | Single character |
suggest_palette_for_style
Get palette recommendations for a specific style.
Kind: Compatibility tool (2.3.0 name) · Live status: Read
| Parameter | Type | Required | Description |
|---|---|---|---|
style | string | Yes | Style 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
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of: color, character. |
paletteId | string | Yes | — |
name | string | No | — |
colors | array | No | — |
characters | array | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
session | object | Yes | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
width | integer | No | — |
height | integer | No | — |
name | string | No | — |
description | string | No | — |
backgroundColor | object | No | — |
frameRate | integer | No | — |
durationFrames | integer | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
recursive | boolean | No | Search 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | File 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
| Parameter | Type | Required | Description |
|---|---|---|---|
width | integer | No | Canvas width |
height | integer | No | Canvas height |
name | string | No | Project name |
template | string | No | Use 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | File 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
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
description | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | New 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | Path to the text file |
frameIndex | integer | No | Frame to import to (defaults to current) |
offsetX | integer | No | X offset on canvas |
offsetY | integer | No | Y offset on canvas |
color | string | No | Foreground color for imported text |
bgColor | string | No | Background color for imported text |
replaceSpaces | boolean | No | Whether 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | Path to the image file (.png, .jpg, .gif, .bmp) |
targetWidth | integer | No | Target width in characters. If omitted, uses canvas width. |
targetHeight | integer | No | Target height in characters. If omitted, maintains aspect ratio. |
charset | string | No | Characters to use for brightness mapping (dark to bright) |
colorMode | string | No | How to apply colors. One of: none, foreground, background, both. |
dithering | string | No | Dithering algorithm to use. One of: none, floyd-steinberg, ordered. |
frameIndex | integer | No | Frame to import to (defaults to current) |
offsetX | integer | No | X offset on canvas |
offsetY | integer | No | Y 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Base64 file bytes |
mimeType | string | Yes | — |
filename | string | No | — |
mode | string | No | One of: new_layer, replace, overlay. |
target | object | No | — |
width | integer | No | — |
height | integer | No | — |
matchFrameRate | boolean | No | — |
video | object | No | Video sampling window (video/* only). Omit to import every source frame. |
settings | object | No | Import settings overrides; allowed keys, enums and defaults: get_catalog tools.importSettings. Unsupported keys are rejected. |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | Path to the video file (.mp4, .webm, .mov, .gif) |
targetWidth | integer | No | Target width in characters. If omitted, uses canvas width. |
targetHeight | integer | No | Target height in characters. If omitted, maintains aspect ratio. |
charset | string | No | Characters to use for brightness mapping (dark to bright) |
colorMode | string | No | How to apply colors. One of: none, foreground, background, both. |
fps | number | No | Frames per second to extract |
maxFrames | integer | No | Maximum number of frames to import |
startTime | number | No | Start time in seconds |
duration | number | No | Duration 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
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | No | Base64 image/video bytes |
mimeType | string | No | — |
filename | string | No | — |
clear | boolean | No | — |
enabled | boolean | No | — |
opacity | number | No | — |
renderOrder | string | No | One of: behind, inFront. |
frameOffset | integer | No | — |
position | object | No | — |
scale | number | No | — |
fitToCanvas | boolean | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | Yes | One of: png, jpg, svg, webm, mp4, image_sequence, session, text, json, ansi, html, react, ink, opentui, bubbletea. |
settings | object | No | — |
filename | string | No | — |
expectedRevision | integer | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
frameIndex | integer | No | Frame to export (defaults to current) |
colorMode | string | No | ANSI 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save (.go file). If omitted, returns content only. |
frameIndex | integer | No | Frame to export (defaults to current) |
packageName | string | No | Go package name |
modelName | string | No | Model name. The connected app supports "Model"; custom names are headless-only. |
includeAnimation | boolean | No | Export 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save to. If omitted, returns HTML content. |
backgroundColor | string | No | Background color |
fontFamily | string | No | Font family. One of: monospace, courier, consolas. |
fontSize | integer | No | Font size in pixels |
animationSpeed | number | No | Animation speed multiplier |
loops | union | No | Number of loops |
includeControls | boolean | No | Include 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | File path to save (relative to project dir). Extension determines format (.png, .jpg, .svg). |
format | string | No | Image format (auto-detected from file extension if omitted). One of: png, jpg, svg. |
sizeMultiplier | number | No | Size multiplier (1x, 2x, 3x, or 4x). One of: 1, 2, 3, 4. |
includeGrid | boolean | No | Include grid lines in the export |
quality | integer | No | JPEG quality (1-100, only used for JPG format) |
frameIndex | integer | No | Frame 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save (.tsx file). If omitted, returns content only. |
frameIndex | integer | No | Frame to export (defaults to current) |
componentName | string | No | Name for the component |
includeAnimation | boolean | No | Export 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save to (relative to project dir). If omitted, returns content only. |
includeMetadata | boolean | No | Include project metadata |
humanReadable | boolean | No | Pretty-print JSON |
includeEmptyCells | boolean | No | Include 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save (.tsx file). If omitted, returns an artifact. |
frameIndex | integer | No | Frame to export (defaults to current) |
componentName | string | No | PascalCase alphanumeric component name |
className | string | No | Removed Python export option; returns UNSUPPORTED. Use componentName instead. |
includeAnimation | boolean | No | Export 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save to |
typescript | boolean | No | Use TypeScript (TSX) |
includeControls | boolean | No | Include play/pause controls |
componentName | string | No | React 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | File 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
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | No | File path to save to (relative to project dir). If omitted, returns content only. |
frameIndex | integer | No | Frame to export (defaults to current). Use "all" param for all frames. |
allFrames | boolean | No | Export all frames with separators |
trimEmpty | boolean | No | Remove leading/trailing empty rows and columns |
includeMetadata | boolean | No | Include 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | File path to save (relative to project dir). Extension determines format (.mp4, .webm). |
format | string | No | Video format (auto-detected from file extension if omitted). One of: mp4, webm. |
sizeMultiplier | number | No | Size multiplier (1x, 2x, or 4x). One of: 1, 2, 4. |
frameRate | union | No | Frame rate in fps, or "auto" to use project frame rate |
quality | string | No | Encoding quality. One of: high, medium, low. |
includeGrid | boolean | No | Include grid lines in the export |
loops | string | No | Number of times to loop the animation in the video. One of: none, 2x, 4x, 8x. |
frameRange | object | No | Frame 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
artifactId | string | Yes | — |
offset | integer | No | — |
length | integer | No | — |
encoding | string | No | One 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
deleted | boolean | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
title | string | Yes | — |
description | string | No | — |
tags | array | No | — |
allowRemixes | boolean | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
description | string | No | — |
saveAsNew | boolean | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
name | string | No | — |
description | string | No | — |
expectedRevision | integer | No | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
session | object | Yes | — |
filename | string | No | — |
expectedRevision | integer | No | Optional revision from an authoritative read; reject if the document changed before execution. |
Resources
| URI | Description |
|---|---|
project://state | Compact authoritative document summary. Use get_document for the complete native session. |
project://canvas | Current timeline-frame cells; live reads use the compositor. Large results become paged artifacts. |
project://frames | Content-frame metadata. Content-frame ordinals are not timeline positions. |
project://selection | Current authoritative selection and clipboard summary. |
project://history | Actual undo/redo history status. |
project://ascii | Plain text at the current timeline frame; composited in live mode. |
project://layers | Layer, group, timeline and procedural-block structure. |
guide://llm-best-practices | Best practices for LLMs using ASCII Motion MCP. Read before complex animation tasks. |
guide://tool-categories | Quick 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.