View the diagram (fast)
canvas_viewWhen: use to see a diagram before you edit it and after each round of changes; this is how you check your work. It answers in milliseconds from the saved diagram, where export_diagram starts a browser for 6-10 s.
Returns a text map: the zones as a tree, each with its place on a coarse grid (r1 = top row, c1 = left column) and its nodes (label, type, icon, #id), then the edges, then the checks a render would reveal: overlapping nodes, overlapping sibling zones, nodes sticking out of their zone, nodes not laid out yet, empty zones, and the validator's error and warning counts. Every #id works as a node reference in the canvas_* tools. It also says when an edit_diagram run or a generation is still in progress on the diagram, and gives a preview image link that renders only if opened.
For a large diagram, pass zone to look at one zone. include_image also renders a PNG (slow: only when you need to see styling).
Next: fix what the checks report with the targeted canvas_* tool, then canvas_view again.
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": {
"diagram_id": "<diagram_id>"
},
"name": "canvas_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone id or exact label: show only that zone and what it contains. | |
| diagram_id | Yes | Diagram id, from list_diagrams, create_diagram or create_blank_diagram. | |
| include_edges | No | List the edges. Default true. | |
| include_image | No | Also render a PNG, 6-10 s. Default false. | |
| include_columns | No | List column names under each table. Default false. |