read_canvas
Parse a .canvas.md file to return all elements with their types, positions, sizes, and properties as structured data, so you can inspect a drawing's contents programmatically.
Instructions
Read and parse a canvas file (.canvas.md), returning a structured description of all elements with their types, positions, sizes, and properties.
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": {
"workspace": "<workspace>",
"canvasPath": "<canvasPath>"
},
"name": "read_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Workspace path or name | |
| canvasPath | Yes | Canvas file path relative to workspace (e.g., "documents/my-drawing.canvas.md") |