# Import draw.io or Visio into a shared canvas

## Agent prompt

```text
Help me move a diagram from draw.io, Visio or Lucidchart into Slatebox so my team can edit it together. Ask which tool the diagram is in and tell me exactly how to export it (draw.io: .drawio; Visio: .vsdx; Lucidchart: File, Export, Visio .vsdx). If you are connected to Slatebox over MCP and can read the file, call import_diagram with its name and contents, then give me the slate link and any warnings. Otherwise walk me through Import a diagram in the app. Then tell me how to share the slate for editing.

Read https://docs.slatebox.com/Using-Slatebox/import-drawio-into-a-shared-canvas.md first. Ask for the inputs you need. Tell me what you verified and which steps I still need to do.

If your client cannot fetch the documentation, read the same published file at https://raw.githubusercontent.com/Slatebox/slatebox-docs/retype/Using-Slatebox/import-drawio-into-a-shared-canvas.md.
```

Move a draw.io, Visio or Lucidchart diagram onto a slate your team edits together, live. Shapes become notes, connectors become lines, and containers become frames, where they were drawn. The import is free and uses no agent.

## 1. Export the file

| From | Export |
| --- | --- |
| draw.io or diagrams.net | **File → Save as** a `.drawio` file. An `.svg` or `.png` works only if you chose **Include a copy of my diagram** |
| Visio | Save as `.vsdx`. Open an `.vsd` or `.vdx` file in Visio and save it as `.vsdx` first |
| Lucidchart or Lucidspark | **File → Export → Visio (.vsdx)** keeps where shapes are. The CSV of shape data has no positions, so its shapes are laid out again |
| Excalidraw, tldraw, Graphviz, PlantUML, Mermaid, XMind | Their own files. [Every format](import-diagrams.md) |

## 2. Import it

1. Open **Import a diagram** from the slate menu, the **+** menu, or **Create slate**.
2. Drop the file on the dialog.
3. Choose **New slate**, or **Add to this slate** on a slate you can edit.
4. Choose **Import**. With **Mark as reviewed after the import** ticked, the button reads **Import and sign off**.

You get a slate with every page side by side, each shape a note with its words and colors, and each connector a line with its label, arrows and dashes. Pictures come in as photo notes where they were drawn. An SVG picture is left out, and the dialog says how many. One file can be up to 5 MB and hold up to 1,000 shapes.

## 3. Edit it together

Share the slate: **Share → Private**, then **edit** beside each teammate's name, or **Share → Create edit link** for anyone with the link. Everyone sees each other's changes as they make them. [Work with a team](readme.md#work-with-a-team)

To let an agent work on it, connect Claude, ChatGPT or Cursor to `https://app.slatebox.com/mcp`. It reads the diagram with `get_slate`, changes it with `edit_slate`, and its changes arrive as suggestions people keep or discard. [Use Slatebox from your agent](use-from-your-agent.md)

## 4. Keep a reviewed version

Choose **Mark as reviewed after the import** in the import dialog, or later **Mark as reviewed** in the slate menu. The record names the reviewer, the time, the file's name and its SHA-256 hash. [Signed-off diagram versions](signed-off-versions.md)

## Import from an agent or a script

An agent connected over MCP calls `import_diagram` with the file's name and contents. A script sends the file over HTTP, as base64, with a token from **Profile → Developer access** that has `slates:write`:

<!-- tabs -->

```sh curl
jq -n --arg data "$(base64 < payments.drawio | tr -d '\n')" '{fileName: "payments.drawio", data: $data}' |
curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $SLATEBOX_API_TOKEN" -H 'Content-Type: application/json' \
  --data @- "https://app.slatebox.com/api/v1/slates/import-diagram"
```

<!-- /tabs -->

The answer holds the new slate's `url`, how many notes and lines were drawn, and what was left out. [Import over HTTP](import-diagrams.md#import-over-http)

## Questions

### Can I import a draw.io file into a collaborative whiteboard for free?

Yes. **Import a diagram** turns a `.drawio` file into notes, lines and frames on a slate. It is free on Slatebox Cloud and on a self-hosted Slatebox, and your team edits the result together, live.

### Can I import Visio files?

Yes, `.vsdx` files, every page, with groups as frames and connectors glued at both ends. Save a `.vsd` file as `.vsdx` in Visio first.

### Can I import from Lucidchart?

Yes. Export from Lucidchart as Visio (`.vsdx`) to keep the layout, or as a CSV of shape data to have the shapes laid out again.

### Is the imported diagram editable or a picture?

Editable. Every shape is a note, every connector is a line, and every picture inside the diagram is a photo note.

### Can I export it back?

A slate exports as Mermaid (**Mermaid** in the slate menu, or `export_mermaid`), and a signed-off version downloads as PNG, PDF and JSON. Slatebox does not write `.drawio` or `.vsdx` files. [Export and import Mermaid](mermaid.md)
