export_diagram
Export Excalidraw diagrams to PNG, SVG, or JSON files for saving and sharing. Supports multiple sessions and requires an active browser connection.
Instructions
Export the current diagram to a PNG, SVG, or JSON file.
Notes:
JSON format is saved directly by the server.
PNG/SVG are generated by the browser and sent back to the server to save.
Requires start_session to be called first and the browser to be connected.
Multi-session support: Specify sessionId to target a specific session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Session ID. If not provided, uses default session. | |
| path | Yes | File path to save (including filename) | |
| format | No | Export format | json |