drawio-skills

Optional MCP Tools

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:

The 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_session

Open a new browser editing session.

Purpose

Parameters

None.

Notes

create_new_diagram

Create a new diagram from full mxGraphModel XML.

Parameters

Name Required Description
xml Yes Full mxGraphModel XML string

Notes

get_diagram

Fetch the latest diagram XML from the browser.

Why it matters

Always call get_diagram before edit_diagram so you do not overwrite manual edits made in the browser.

edit_diagram

Update, add, or delete cells by ID.

Parameters

Name Required Description
operations Yes Array of update, add, or delete operations

Operation shape

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_diagram

Export the current live diagram to disk.

Parameters

Name Required Description
path Yes Output file path
format No drawio, png, or svg; inferred from extension when omitted

Live Workflow

  1. start_session
  2. create_new_diagram
  3. get_diagram
  4. edit_diagram
  5. export_diagram

When Not to Use MCP

Prefer the local CLI and sidecar bundle when: