drawio_open
Open a diagram you wrote in draw.io (diagrams.net). YOU write the diagram as mxGraph XML, the format draw.io reads; this tool checks it, and returns a link that opens it in the draw.io editor for the person, plus a .drawio file to download (kept for one hour). Nothing is drawn or laid out for you, so give every shape its x, y, width and height. The XML must be uncompressed and shaped like this (ids unique, every shape parent="1", edges name source and target ids): If the check finds problems it lists each one with the cell id and the fix; correct the XML and call again. Limits: 200 KB of XML and 500 cells. For AWS and Google Cloud diagrams the check also looks at missing labels, overlaps, text that does not fit, contrast and placement (for example an instance outside a subnet); each finding names the cell. These are vendor-style conventions drawn from draw.io's own libraries, not an official checker from AWS or Google. Labels may use simple HTML (set html=1 in the style); scripts, iframes, event handlers and javascript: links are refused. The diagram travels in the link's fragment, which is never sent to a server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml": "<xml>"
},
"name": "drawio_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The mxGraph XML: an <mxGraphModel> (or an uncompressed <mxfile> holding one). | |
| host | No | diagrams (default): open in app.diagrams.net. self: open in the editor hosted on a2uicatalog.ai, so the diagram never leaves this domain. | |
| style | No | Style pack. auto (default): if the diagram names AWS or Google Cloud services, check it against that vendor's conventions and report findings. aws or gcp: force a pack. none: no style checks. Name a service in the label ("Lambda", "Cloud Run") or set a service="..." attribute on an <object> wrapper. | |
| title | No | Optional name for the downloaded file, for example "checkout-flow". | |
| polish | No | Visual finish using draw.io's own effects, layered on your styles without overriding any key you set: clean (default, nothing added), soft (rounded corners, gentle shadow, subtle gradient), glass (soft plus a glass shine), sketch (hand-drawn outlines). Text, images, icons, containers and shapes restyled by a vendor pack are left alone. | |
| animate | No | Add moving dashes along the connectors (draw.io flow animation). Shows in the draw.io editor; default false. | |
| restyle | No | Rewrite recognised services to draw.io's own icon styles and recognised groups (AWS: VPC, subnets, Region; Google Cloud: zones) to their group styles. AWS has icons for 350 services; for Google Cloud draw.io has 19 core products as stencils, and other Google services keep your style. Default false: the diagram is passed through as you wrote it and only reported on. |