CanvasKeep
v0.6.2Create 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new folder |
workspace_id * | string | The workspace UUID to create the folder in |
parent_folder_id | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
title * | string | A short, descriptive title for the diagram (e.g. 'Auth Flow', 'System Architecture') |
workspace_id * | string | The workspace UUID to create the diagram in |
folder_id | string | Optional 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).
| Parameter | Type | Description |
|---|---|---|
diagram_id * | string | The diagram UUID to update |
title * | string | The new title for the diagram |
delete_diagram
Permanently delete a diagram and its content. This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
diagram_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
diagram_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
diagram_id * | string | The diagram UUID to read |
include_files | boolean | Include 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…
| Parameter | Type | Description |
|---|---|---|
diagram_id * | string | The diagram UUID to write |
elements * | array | The complete Excalidraw elements array for the diagram (not a partial patch). |
appState | object | Optional appState (e.g. viewBackgroundColor). Omit to keep the current one. |
files | object | Optional 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…
| Parameter | Type | Description |
|---|---|---|
diagram_id * | string | The diagram UUID to write the generated content into. Create one first with create_diagram if needed. |
edges * | array | Connections between nodes representing interactions, data flows, API calls, or dependencies. Each becomes a labeled arrow. |
nodes * | array | Every distinct component, actor, system, or data store to show on the diagram. Each becomes a labeled box. |
direction | string | Layout 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. |
mode | string | 'replace' clears existing content and draws only the new graph. 'append' adds the new graph alongside any existing diagram content. |