Capture Excalidraw canvas
capture_canvasCapture an open Excalidraw canvas at a saved revision, returning a PNG for image-capable models plus text diagnostics for all models.
Instructions
Returns a standard MCP PNG rendered by the open Browser View plus text clipping diagnostics. Image-capable models can inspect the PNG; other models can still use the diagnostics. The View must already be open on the same saved canvas revision.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"canvasPath": "<canvasPath>",
"revision": "<revision>"
},
"name": "capture_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxWidth | No | ||
| revision | Yes | Exact saved revision returned by inspect or mutation tools. | |
| maxHeight | No | ||
| canvasPath | Yes | Full workspace-relative canvas path under projectPath, for example designs/m3/main.excalidraw. Never pass only main.excalidraw. | |
| projectPath | Yes | Full workspace-relative project path, for example designs/m3. |