mermaid_to_excalidraw
Convert a Mermaid diagram into Excalidraw elements and save the result to a file. Useful for editing Mermaid diagrams inside Excalidraw.
Instructions
Convert a Mermaid diagram to Excalidraw elements and optionally render it.
NOT IMPLEMENTED YET. Planned to wrap the official @excalidraw/mermaid-to-excalidraw npm package via a small Node/Bun shim rather than reimplementing Mermaid parsing.
Return Format
{"success": False, "error": str, "error_type": "not_implemented", "suggestions": list[str]}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mermaid_source": "<mermaid_source>",
"output_path": "<output_path>"
},
"name": "mermaid_to_excalidraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | Path to write the converted/rendered output. | |
| mermaid_source | Yes | Mermaid diagram source text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||