tree_diagram
Renders an indented outline as a node-link tree with centered parents and box-drawing connectors, for org charts, taxonomies, and dependency or lineage trees.
Instructions
Draw a hierarchy as a tree — the branching counterpart to block_diagram (which is a linear chain). Give it an indented tree outline (each deeper indent is a child) and it renders a real node-link tree: parents centered above their children, joined by box-drawing connectors. Great for a taxonomy, an org chart, a dependency or model-lineage tree. layout: "down" is the centered tree; layout: "list" is the file-tree ( |-- / -- ) form. boxed` wraps each node in a box.
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": {
"tree": "<tree>"
},
"name": "tree_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| tree | Yes | Indented outline; each deeper indent level is a child. E.g. 'Claude\n Opus\n Sonnet\n Haiku'. | |
| boxed | No | Wrap each node in a box (down layout only). | |
| gap_x | No | Columns between sibling subtrees (down layout). | |
| style | No | Connector charset: unicode box-drawing or portable 7-bit ascii. | unicode |
| title | No | Optional heading centered above the tree. | |
| layout | No | down: centered node-link tree. list: left-aligned file-tree. | down |