convert
Converts Mermaid diagrams (flowcharts, sequence, ER) into styled Excalidraw files saved to disk, with optional node-level styling via %%{excali: styles}%% directives.
Instructions
Convert a Mermaid diagram to a styled Excalidraw file in Obsidian format. Supports flowcharts, sequence diagrams, and ER diagrams. Use %%{excali: styles: {nodeId: styleType}}%% directive for explicit styling. Style types: ui, api, db, cache, queue, gateway, external, agent, storage, user, orchestrator, problem, solution, highlight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mermaid | Yes | Mermaid diagram source. Supports flowchart/graph, sequenceDiagram, and erDiagram. Add %%{excali: styles: {A: db, B: api}}%% for explicit colors. | |
| outputPath | No | File path to write the .excalidraw.md file. RECOMMENDED: Always provide this to avoid large responses. If not provided, returns the full content (token-heavy). |