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.
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. |