render_graphviz
Convert DOT source into SVG or PNG diagrams for dependency graphs, network diagrams, tree structures, and large layouts. Supports hierarchical, spring, force-directed, and circular engines.
Instructions
Render a Graphviz DOT diagram to SVG or PNG. Best for: dependency graphs, network diagrams, tree structures, large auto-layout graphs (100+ nodes). IMPORTANT: Source must be wrapped in 'digraph G { ... }' or 'graph G { ... }'. Use '->' with digraph, '--' with graph. Engine guide: dot=hierarchical, neato=spring, fdp=force-directed, sfdp=large graphs, circo=circular, twopi=radial. Call get_tool_guide('graphviz') for examples.
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": {
"dot_source": "<dot_source>"
},
"name": "render_graphviz"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | Layout engine: dot=hierarchical, neato=spring, fdp=force-directed, sfdp=large, circo=circular, twopi=radial | dot |
| format | No | Output format. SVG preferred. | svg |
| dot_source | Yes | Graphviz DOT source. Must start with 'digraph G {' or 'graph G {'. Use '->' for directed, '--' for undirected. |