Show a diagram
visualizeTurn long text or ideas into structured diagrams—mind maps, flowcharts, org charts, timelines, fishbones, swimlanes, or outlines—directly in chat.
Instructions
Show an idea to the user as a diagram instead of a long text. Pick the structure from what the content is: exploring a topic -> mindmap; a hierarchy or parts of a whole -> org or logic; steps and decisions -> flowchart; causes of a problem -> fishbone; events in order -> timeline; who does what -> swimlanes (give lanes, and a lane on each node); a long list to read top to bottom -> outline. Rules: labels of 1-5 words; 3-7 children per node; at most 3 levels and about 30 nodes at first; put detail in note. Give every node a short id. For a tree set parent on every node but the root. For a flowchart leave parent out and join the nodes with edges; label the edges out of a decision. The first node is the root or the start. Send no positions and no colors. To show a diagram again, pass only its docId. To change one that is on screen, use edit_diagram, not this tool.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "visualize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | No | Alone: show that diagram again. With nodes: replace it. | |
| edges | No | Flow between flowchart nodes, or cross links between tree nodes | |
| lanes | No | Swimlanes only | |
| nodes | No | Every idea or step, root or start first. Needed for a new diagram. | |
| theme | No | Leave out unless the user asked for a look. host follows the chat client. | |
| title | No | Short title of the diagram | |
| animate | No | Leave out unless the user asked. Default: on. | |
| structure | No | How to draw it. Pick from what the content is; the user can switch later. |