These MCP tools support base-skill live browser refinement. They are not the default runtime for Draw.io Skill 2.2.0.
Use them only when:
drawio skill, not the academic overlayThe default workflow is still offline-first with final .drawio plus work-dir sidecars. drawio-academic-skills does not create, require, or route through .mcp.json, MCP, or a live backend.
start_sessionOpen a new browser editing session.
None.
create_new_diagramCreate a new diagram from full mxGraphModel XML.
| Name | Required | Description |
|---|---|---|
xml |
Yes | Full mxGraphModel XML string |
0 and 1 remain reserved root cellsget_diagramFetch the latest diagram XML from the browser.
Always call get_diagram before edit_diagram so you do not overwrite manual edits made in the browser.
edit_diagramUpdate, add, or delete cells by ID.
| Name | Required | Description |
|---|---|---|
operations |
Yes | Array of update, add, or delete operations |
| Field | Required | Description |
|---|---|---|
operation |
Yes | update, add, or delete |
cell_id |
Yes | Existing ID for update/delete, new ID for add |
new_xml |
For add/update | Full <mxCell> element including <mxGeometry> |
export_diagramExport the current live diagram to disk.
| Name | Required | Description |
|---|---|---|
path |
Yes | Output file path |
format |
No | drawio, png, or svg; inferred from extension when omitted |
start_sessioncreate_new_diagramget_diagramedit_diagramexport_diagramPrefer the local CLI and sidecar bundle when: