Create an interactive diagram
create_diagramCreates an interactive diagram in the conversation from nodes and edges you supply. Use it when the user asks to draw, diagram, map or visualize how the parts of something relate: system architecture, services and the calls between them, data models, dependency trees, workflows, organizations, knowledge maps. Not for charts of numeric data. In the diagram the user can collapse and expand boxes, regroup at each level of nesting, focus on an item and what connects to it, show clusters and cycles, and search, hide and export. The server checks the diagram and stores nothing. STRUCTURE: every node has a unique 'id'. A node with no 'parent' is drawn as a box of its own; a node WITH a 'parent' is drawn as a ROW inside its parent's box (an endpoint inside a service, a column inside a table) and the parent can be collapsed. 'group' (top-level nodes only) draws a labelled boundary around nodes, nested with '/': 'AWS/VPC' puts the node in a VPC box inside an AWS box. If you use groups, give EVERY top-level node a group: the views that draw groups as closed or stacked boxes are offered only when no node is left out. Edges run between any two nodes, rows included; give an edge a short 'label' only when the relation is not obvious ('HTTPS', 'publishes'). Optional per node: 'description' (shown on hover; add one only where the label is not enough), 'link' (an https URL, opened on double-click), 'color', 'kind': 'field' for an attribute-style row, 'collapsed': true to start folded. Optional per edge: 'color', 'style' ('dashed' for async or optional, 'dotted' for weak). Keep it legible: prefer grouping and nesting over hundreds of top-level boxes; use color for a category, not decoration.
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": {
"nodes": "<nodes>"
},
"name": "create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | ||
| nodes | Yes | ||
| title | No | Diagram title, shown as its name. |