Example Prompts
These prompts are written for ascii-motion-mcp 3 with live sync connected to ASCII Motion 2.2.6 or later. Name the server ("using ascii-motion") so your assistant picks the right tools. The tool names after each prompt show what a well-behaved agent should call.
Check the connection first
Using ascii-motion: call get_capabilities and get_document_summary. Then write
"@" at x 0, y 0 with set_cells, read it back with read_cells, and call app_undo.You should see @ appear in the top-left corner and then disappear. If it doesn't, see Verify the connection.
Draw on a new layer
Using ascii-motion: read the document summary. Add a layer named "Title", then
on it draw a 24-cell horizontal line of "=" at row 2 and type "HELLO" at x 2,
y 1, in one atomic batch. Show me the composite cells for rows 0–3.get_document_summary, keeping itsrevision.app_add_layerwithname: "Title", which returns thelayerIdandcontentFrameIds.apply_operationswithdraw_lineandplace_text, both targeting that layer and content frame, andexpectedRevision.read_cellswithregion: { x: 0, y: 0, width: 24, height: 4 }.
Shapes, boxes and big text
Using ascii-motion: draw a 30×10 double-line ASCII box at x 5, y 3, fill the
inside with "░" in #335577, and write "PRESS START" in a FIGlet font centered
above it. Use one batch so I can undo it in one step.draw_ascii_box, fill_area and place_figlet_text in one apply_operations call. get_catalog lists the available box styles and FIGlet fonts; box style IDs are under family: "tools".
Frame-by-frame animation
Using ascii-motion: on the active layer, create four content frames of 3
timeline frames each starting at frame 0. Draw a stick figure at x 10, y 4 in
a different walking pose on each, then set the frame rate to 8 fps.app_add_content_frame four times with startFrame 0, 3, 6 and 9 and durationFrames: 3, then drawing tools that target each returned contentFrameId, then set_timeline with frameRate: 8. See Layers and timeline.
Animate a layer
Using ascii-motion: make the Title layer slide in from x -20 to x 0 over
timeline frames 0–11 with ease-out, then hold.set_keyframes with the layer's layerId, propertyPath: "transform.position.x" and two keyframes, the first with easing: "ease-out".
Generators, effects and shaders
Using ascii-motion: list the effect, shader and generator catalogs. Add a
wave-warp effect to the Title layer, a glow shader that fades in over the first
24 frames, and a digital-rain generator layer whose speed doubles by frame 48.get_catalog for each family, then add_effect, add_shader plus set_shader_keyframes, and app_add_generator_layer with keyframes. More in Generators, effects and shaders.
Using ascii-motion: add animated text "PRESS START" with a typewriter effect
revealing over 18 frames from frame 6, in #00ff88. When I approve the look,
bake it so I can edit the cells by hand.app_add_generator_layer with generatorType: "animated-text", then app_bake_generator_layer after you confirm.
Import
Using ascii-motion: import logo.png as a new layer 60 cells wide.Using ascii-motion: import seconds 2–5 of clip.mp4 at 12 fps as a new layer,
and match the project frame rate.import_media with mode: "new_layer", and for the video, video: { startTime: 2, duration: 3, frameRate: 12 } and matchFrameRate: true. More in Import and export.
Inspect your work
Using ascii-motion: show me the composite cells for the top 10 rows at timeline
frame 24, and the undo history.read_cells with scope: "composite", frame: 24 and a region, then get_history.
Export
Using ascii-motion: export timeline frames 12–35 as WebM, the current frame as
a 2x PNG, and an Ink component for my terminal app. Tell me the file paths.export three times, with format webm and settings: { frameRange: { start: 12, end: 35 } }, then png and ink. Use get_catalog with family: "export_formats" for each format's settings.
Built-in prompt templates
Many clients show the server's prompt templates as slash commands or in a prompt picker:
| Prompt | Use it to |
|---|---|
create-animation | Plan and draw a short multi-frame animation. |
create-banner | Make an animated text banner or logo. |
generate-rain | Build a digital-rain animation. |
import-and-animate | Import an image and animate it. |
apply-effects / add-effects | Add effects to the project. |
export-for-cli | Export for terminal frameworks. |
The templates were written for the 2.x tool names. They still work, because the compatibility tools remain, but you can ask the assistant to use the canonical tools instead.
Tips for better results
- Start with the summary.
get_document_summarygives IDs and the revision without large cell dumps. - Be specific about coordinates and time.
xis the column andyis the row, both from 0. Say "timeline frame" for a position on the ruler. - Batch related edits.
apply_operationsapplies up to 100 changes as one undoable step, or none at all if any fails. - Read small regions. Ask for
read_cellswith aregioninstead of the whole canvas. - Use exact colors. Give hex values, such as
#ff8800. - Keep a copy. Export a
sessioncopy, or save from the app, before a long session.
Next steps
- Tool reference
- Live Sync
- Creating animations in the app