Get architecture diagram
get_diagramRetrieve the raw internal representation and current version of a diagram to obtain correct node, group, and edge IDs before making edits.
Instructions
Fetch a diagram's raw IR (nodes, groups, edges with their real ids) and its current version. Call this before edit_diagram so your ops reference ids that actually exist and you pass the correct baseVersion. Returns { diagram, version }.
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": {
"diagramId": "<diagramId>"
},
"name": "get_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagramId | Yes | The diagram to fetch. |