Read a diagram, with a picture
get_diagramWhen: use to show the user a diagram (it attaches a rendered PNG and a markdown image line, 6-10 s), or to poll a diagram that create_diagram or edit_diagram is still working on. To check your own edits, canvas_view is faster and reports overlaps.
Returns every node with its type and columns, every connection and the zones, plus whether a generation or edit_diagram run is still in progress.
Next: canvas_view and the canvas_* tools to edit.
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": "get_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram_id | Yes | Canvas id, from list_diagrams, create_diagram, or create_blank_diagram. | |
| include_image | No | Attach a PNG preview and a markdown image link to show the user. Default true; pass false for structure-only reads. | |
| include_columns | No | Include table column lists. Default true. |