block_diagram
Draw architecture diagrams as labeled boxes joined by arrows or lines, with configurable direction, style, and title for pipelines, stacks, and flow charts.
Instructions
Draw an architecture diagram: a sequence of labeled boxes joined by connectors — the structured counterpart to shape_text. Give it blocks (each a label; use \n for a multi-line label) and it lays them out as boxes with arrows between, sized to the longest label. Perfect for a transformer stack, a pipeline, or a flow chart. Choose direction (down/up/right/left), style (unicode rounded, ascii, or double lines), and an optional title.
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": {
"blocks": "<blocks>"
},
"name": "block_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| gap | No | Connector length in cells between boxes. | |
| align | No | center | |
| pad_x | No | Horizontal padding inside each box. | |
| style | No | Box charset: unicode (rounded), ascii (portable +-|), or double lines. | unicode |
| title | No | Optional heading centered above the diagram. | |
| blocks | Yes | The labels, in flow order. Each becomes a box; use \n for multiple lines. | |
| connector | No | What joins the boxes: an arrowhead, a plain line, or nothing. | arrow |
| direction | No | Flow direction. down/up stack vertically; right/left run horizontally. | down |