check_layout
Detect layout issues in draw.io diagrams, such as node overlaps, edge label collisions, edges through nodes, and insufficient spacing. Offers actionable suggestions to fix them.
Instructions
Analyze a draw.io diagram for layout issues. Returns warnings about:
Node overlaps (two nodes occupying the same space)
Edge label overlaps with nodes (label text crossing through a node)
Edge passes through node (an edge's path visually crosses an intermediate node)
Insufficient spacing between connected nodes (label won't fit in the gap)
Each warning includes direction-aware suggestions that consider cascading conflicts — e.g. if moving node A right would collide with node B, the suggestion warns about it and recommends moving B first.
For edge-passes-through-node issues, suggestions include moving the blocking node, changing edge style to "curved" or "orthogonal", or using connection points to reroute.
Call this after building/modifying a diagram to detect readability problems. Use the suggestions to fix issues via update_element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the .drawio file | |
| pageIndex | No | Page to analyze (0-based, default: 0) |