Copilot Draw.io
Generate and edit draw.io diagrams using natural language, powered by GitHub Copilot.
Features
- Natural Language to Diagram — Describe what you want in plain text, get a draw.io diagram instantly
- Image to Diagram — Attach a screenshot or image and have it recreated as an editable draw.io diagram
- Iterative Editing — Refine your diagram through conversation: add nodes, change layouts, update styles
- Live Preview — Diagrams render in a built-in draw.io WebView panel with full editing support
- Export — Save diagrams as
.drawio or .svg files
Usage
The extension contributes two language model tools that work in agent mode and in the Copilot harness:
| Tool |
Reference |
Purpose |
copilot-drawio_renderDiagram |
#drawDiagram |
Render draw.io XML in the preview panel |
copilot-drawio_getCurrentDiagram |
#currentDiagram |
Read the current diagram (including manual edits) |
Just ask for a diagram, or reference the tool explicitly:
#drawDiagram draw a flowchart: user login → auth check → dashboard
#currentDiagram #drawDiagram add a cache between the API gateway and the services
The diagram appears in the preview panel. Edit it there or keep chatting to refine it.
Attach an image to your chat message and ask to recreate it:
#drawDiagram recreate this diagram
Requires a vision-capable model (e.g. GPT-4o, Claude).
Changelog
0.3.0
- Breaking: Removed the
@copilot-drawio chat participant. Chat participants are deprecated and not supported in the Copilot harness.
- Added language model tools
#drawDiagram (render diagram) and #currentDiagram (read current diagram), usable in agent mode and the Copilot harness.
- Migration: replace
@copilot-drawio <request> with #drawDiagram <request> in agent mode.
Requirements
License
MIT
| |