Import a diagram
import_diagramImport draw.io XML files as new diagrams. Validates and sanitizes uploads, making them ready for your account.
Instructions
Import an existing draw.io (mxGraphModel/mxfile) XML document as a new diagram in your account. Validated and sanitized. Free (no AI).
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": "import_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | draw.io mxGraphModel/mxfile XML | |
| title | No | Optional title (derived if omitted) | |
| diagram_type | No | architecture | flowchart | ... (default: architecture) | |
| cloud_provider | No | aws | azure | gcp | ... (default: general) |