create_new_diagram
Create a new diagram by providing mxGraphModel or mxfile XML, then save and open it locally in Draw.io.
Instructions
Create a new diagram from mxGraphModel or mxfile XML, save it locally, and open it in Draw.io.
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": "create_new_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Complete mxGraphModel or mxfile XML. |