List D2 Layout Engines
d2_list_layoutsList available D2 layout engines with feature support to select the right one for diagram rendering.
Instructions
List available D2 layout engines with descriptions and feature support.
Use layout names with d2_render's layout parameter. No d2 binary required — layout list is built-in.
Args: (none)
Returns: JSON object: { "layouts": [{ "name": string, "description": string, "features": string[] // Supported features }] }
Layout guidance:
dagre: Default. Fast, good for most flowcharts and architecture diagrams.
elk: Better for complex graphs, supports ancestor-to-descendant connections, width/height on containers. Slower than dagre.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||