import_drawing
Convert Mermaid, Excalidraw, or draw.io diagrams into DrawFather drawings by validating input and preserving supported edits, with strict or loss-accepting modes.
Instructions
Import Mermaid flowchart/sequence/ER, Excalidraw JSON or single-page draw.io XML. Discover drawfather://interchange first. Strict conversion blocks unsupported content; preserve explicitly accepts reported losses and keeps exact original input. Native snapshots merge supported edits or report conflicts. dryRun validates without writing. Existing files require expectedRevision.
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": {
"name": "<name>",
"format": "<format>",
"source": "<source>"
},
"name": "import_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact drawing file stem, without the .drawfather extension. Preserve the user-requested name; this is separate from design.title. | |
| dryRun | No | ||
| format | Yes | ||
| source | Yes | ||
| options | No | ||
| preview | No | ||
| includeSource | No | ||
| expectedRevision | No |