export_diagram
Convert Excalidraw architecture diagrams to SVG or PNG images for sharing or documentation.
Instructions
Export an .excalidraw file to SVG or PNG image.
Converts an existing .excalidraw diagram into a portable image file without requiring a browser or the Excalidraw application.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Path to the source .excalidraw file. | |
| output_path | Yes | Destination file path (e.g., "./arch.svg" or "./arch.png"). | |
| format | No | Output format - "svg" (default) or "png". PNG export requires the cairosvg package (``pip install cairosvg``). | svg |
| scale | No | Resolution multiplier for PNG output (default 2.0 = 2×). Has no effect on SVG output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |