antigravity-drawio-mcp
v2.0.2Production-grade AI Diagramming & Architecture Engine for Draw.io.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_smart_diagram
Generate a professionally themed, auto-laid-out diagram without calculating manual pixel coordinates.
| Parameter | Type | Description |
|---|---|---|
edges * | array | |
nodes * | array | |
output_path * | string | |
containers | array | |
layout_direction | string | |
theme | string | |
title | string |
generate_c4_diagram
Generate an official C4 architecture diagram (Context, Container, or Component view) with actors, systems, and boundaries.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
spec * | object |
generate_er_diagram
Generate a relational database ER schema diagram with tables, primary/foreign keys, types, and cardinalities.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
spec * | object |
generate_sequence_diagram
Generate a UML sequence diagram with lifelines, sync/async call arrows, and return messages.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
spec * | object |
patch_diagram
Surgically patch an existing diagram: add/delete/update nodes, rewire edges, group into containers, or highlight paths.
| Parameter | Type | Description |
|---|---|---|
drawio_path * | string | |
operations * | array | |
output_path | string |
beautify_diagram
Beautify any existing diagram by running topological auto-layout, resolving overlapping links, and applying modern themes.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
layout_direction | string | |
output_path | string | |
theme | string |
analyze_diagram
Analyze diagram topology: extracts entry points, sinks, feedback cycles, bottlenecks, and critical execution paths.
| Parameter | Type | Description |
|---|---|---|
input_path * | string |
create_diagram
Create a new .drawio XML diagram file with nodes and edges at specified coordinates.
| Parameter | Type | Description |
|---|---|---|
edges * | array | |
nodes * | array | |
output_path * | string | |
page_name | string |
export_diagram
Export a .drawio XML diagram to PNG, SVG, PDF, or JPEG using desktop CLI.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output_path * | string | |
format | string | |
page_index | integer |
open_in_drawio
Open a .drawio diagram file directly in the local Draw.io Desktop GUI app.
| Parameter | Type | Description |
|---|---|---|
input_path * | string |
parse_diagram
Parse a .drawio XML file and extract structured nodes, edges, and page metadata.
| Parameter | Type | Description |
|---|---|---|
input_path * | string |
convert_mermaid_to_drawio
Convert a Mermaid JS graph definition string into native .drawio XML.
| Parameter | Type | Description |
|---|---|---|
mermaid_code * | string | |
output_path * | string |
validate_diagram
Audit a .drawio diagram file for node collisions and text boundary overflows.
| Parameter | Type | Description |
|---|---|---|
input_path * | string |
resolve_diagram_collisions
Auto-resolve node collisions in a .drawio diagram by shifting overlapping coordinates.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output_path | string |