CanvasKeep

v0.6.2
io.github.CanvasKeep/canvaskeep-mcp Checked 1 day ago Published 1 month ago

Create and edit Excalidraw diagrams in your CanvasKeep workspace, with auto-layout and folders.

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

list_workspaces

List all workspaces in your CanvasKeep account. Returns each workspace's id and name. Use this first to find the workspace_id needed by other tools.

create_workspace

Create a new workspace. Returns the new workspace's id and name.

ParameterTypeDescription
name *stringName for the new workspace

list_folders

List all folders in a workspace. Returns each folder's id, name, and parent_folder_id. Use folder ids when creating diagrams inside a specific folder.

ParameterTypeDescription
workspace_id *stringThe workspace UUID to list folders from

create_folder

Create a new folder in a workspace. Returns the new folder's id and name. Optionally nest it inside an existing folder.

ParameterTypeDescription
name *stringName for the new folder
workspace_id *stringThe workspace UUID to create the folder in
parent_folder_idstringOptional parent folder UUID to nest this folder inside

list_diagrams

List all diagrams in a workspace. Returns each diagram's id, title, and last updated timestamp.

ParameterTypeDescription
workspace_id *stringThe workspace UUID to list diagrams from

create_diagram

Create a new empty diagram in a workspace, optionally inside a folder. Returns the new diagram's id. Use generate_diagram afterward to populate it with content. Use list_folders first to find the folder_id if you want to place it in a specific folder.

ParameterTypeDescription
title *stringA short, descriptive title for the diagram (e.g. 'Auth Flow', 'System Architecture')
workspace_id *stringThe workspace UUID to create the diagram in
folder_idstringOptional folder UUID to place the diagram in. Use list_folders to find folder ids. Omit to create at workspace root.

update_diagram

Update a diagram's title (rename it).

ParameterTypeDescription
diagram_id *stringThe diagram UUID to update
title *stringThe new title for the diagram

delete_diagram

Permanently delete a diagram and its content. This cannot be undone.

ParameterTypeDescription
diagram_id *stringThe diagram UUID to delete

get_diagram_summary

Get a summary of an existing diagram: its title, workspace, element count, and when it was last updated. Does NOT return the raw scene data.

ParameterTypeDescription
diagram_id *stringThe diagram UUID to look up

get_diagram_scene

Read the raw Excalidraw scene of a diagram: the full elements array (with ids, x/y, width/height, styles, text, arrow bindings) and appState. Use this before save_diagram_scene to make precise edits: read the scene, modify the elements you need, then write the complete array back. Embedded image data (files) is omitted by default because it can be very large; set include_files to true only if you need it.

ParameterTypeDescription
diagram_id *stringThe diagram UUID to read
include_filesbooleanInclude embedded image data (base64). Defaults to false; only file ids are listed.

save_diagram_scene

Overwrite a diagram's scene with a full Excalidraw elements array. Use this for manual layout and precise edits (moving, restyling, relabeling, adding or removing specific elements). IMPORTANT: this REPLACES the entire scene. Always call get_diagram_scene first, modify that array, and send back EVERY element you want to keep. Any element missing from the array is deleted. To remove an element you may also set "isDeleted": true on it. When changing an element, bump its "version" and set a new random "versionNonce" so open editors pick up the change. Text inside a shape is a separate text elem…

ParameterTypeDescription
diagram_id *stringThe diagram UUID to write
elements *arrayThe complete Excalidraw elements array for the diagram (not a partial patch).
appStateobjectOptional appState (e.g. viewBackgroundColor). Omit to keep the current one.
filesobjectOptional embedded files map. Omit to keep the current files.

generate_diagram

Generate a visual diagram from a structured graph of nodes and edges, and save it to an existing CanvasKeep diagram. You provide the logical structure (what components exist and how they connect), and CanvasKeep handles all visual layout automatically - do NOT try to compute x/y positions. NODES: Create one node for every distinct component, actor, system, service, or data store mentioned in the user's request. Give each a short, clear label (under 30 chars). Choose the right type for visual distinction. EDGES: Create one edge for every meaningful interaction, data flow, API call, or depend…

ParameterTypeDescription
diagram_id *stringThe diagram UUID to write the generated content into. Create one first with create_diagram if needed.
edges *arrayConnections between nodes representing interactions, data flows, API calls, or dependencies. Each becomes a labeled arrow.
nodes *arrayEvery distinct component, actor, system, or data store to show on the diagram. Each becomes a labeled box.
directionstringLayout direction. 'vertical' (default): top-to-bottom flow, best for sequential processes. 'horizontal': left-to-right. 'auto': picks based on max fan-out from any single node.
modestring'replace' clears existing content and draws only the new graph. 'append' adds the new graph alongside any existing diagram content.