export_diagram
Export diagrams to PNG, SVG, or JSON formats. Requires an active session and 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
| 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 |