import_mermaid
Convert Mermaid diagram text into editable Excalidraw files. Auto-detects flowchart and sequence diagram types for accurate conversion.
Instructions
Import any Mermaid diagram and convert to Excalidraw.
Auto-detects diagram type (flowchart or sequence diagram) and generates the appropriate Excalidraw diagram.
Args: mermaid: Mermaid diagram text (flowchart or sequenceDiagram) output_path: Optional output file path
Returns: Absolute path to the generated .excalidraw file
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": "<mermaid>"
},
"name": "import_mermaid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | light | |
| mermaid | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |