read_drawio
Parse .drawio or .xml diagram files into structured JSON to extract shapes, edges, and their properties. Analyze existing diagrams, extract component lists, or understand diagram structure before modifications.
Instructions
Reads and parses a .drawio or .xml diagram file, returning structured JSON with all shapes, edges, and their properties (labels, positions, styles, connections). Use this to analyze existing diagrams, extract component lists, or understand diagram structure before making modifications. Supports both uncompressed mxGraphModel XML and .drawio file format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .drawio or .xml file to read | |
| include_style_details | No | Include parsed style properties for each shape/edge. Default: true | |
| include_geometry | No | Include position and size for each shape. Default: true |