Projects, Selection and Palettes with MCP
Project lifecycle
| Task | Tool | Notes |
|---|---|---|
| Inspect the project | get_document_summary | Canvas, timeline, layers, groups, effects, shaders, selection and history, without cell data. |
| Read everything | get_document | The full document. Large projects are returned as an artifact. |
| Start a new project | app_new_project | Optional size, name, description, background, frame rate and duration. |
| Open a project | app_load_project | Loads a native session object through the app's importer. |
| Save a copy | export with format: "session" | Writes an .asciimtn file to --project-dir. |
| Rename or describe | set_project_metadata | |
| Resize or crop the canvas | app_resize_canvas (with anchor), crop_canvas | |
| Canvas background, font and spacing | set_canvas_background, set_typography | Use get_catalog with family: "fonts" for font IDs. |
| Undo history | get_history, app_undo, app_redo | Every MCP change is one step in the app's undo history. A batch from apply_operations is one step. |
app_new_project and app_load_project replace the open project. Ask the agent to export a session copy, or save from the app, before starting a long agent session.
Cloud saving, sharing and publishing are covered by the cloud project tools, which act for the account signed in to the connected browser. They are untested signed in. MCP never needs your account credentials; don't paste them into a chat.
Selection
| Task | Tool |
|---|---|
| Read the current selection | app_get_selection |
| Select | set_selection with mode: rectangle, cells, polygon, match (by character or color, optionally contiguousFrom a point) or all. combine adds to or subtracts from the existing selection. |
| Clear | app_clear_selection |
| Copy, cut and paste | copy_selection (cut: true to cut), paste_clipboard at x, y |
| Move the selected cells | move_selection by dx, dy |
| Edit inside the selection | clear_cells, app_fill_region or flip_content with useSelection: true |
Selections are shown in the editor, so you can see what the agent selected before it edits.
Colors and characters
| Task | Tool |
|---|---|
| Set the drawing character, colors and tool | set_tool_state |
| Switch palettes | set_active_palette with kind color or character |
| Create, edit, duplicate or delete a palette | create_palette, update_palette, duplicate_palette, delete_palette |
| Import or export a palette | import_palette, export_palette |
| List palettes, including your custom ones | get_catalog with family: "palettes" |
Drawing tools also take an explicit style with char, color and bgColor (hex strings, such as #ff8800), which is often simpler than changing the active tool state.
Related
- Palettes in the app
- Tool reference: Colors and palettes, Selection and Projects and files