Import a Mermaid flowchart
import_mermaidConvert a Mermaid flowchart or graph into a BPMN process and replace the open diagram with an auto-laid-out result; returns shape counts and warnings.
Instructions
Replaces the whole open diagram with a process converted from a Mermaid flowchart (flowchart or graph), then laid out automatically. Rectangles become tasks, {decisions} exclusive gateways, ((circles)) and ([stadiums]) events, [[subroutines]] call activities, [(cylinders)] data stores, [/parallelograms/] and documents data objects, comment or brace shapes annotations (%% lines are left out), fork parallel gateways, delay timer events. Link labels become flow names. A step with several outgoing links gets a split gateway: exclusive if the links are labelled, parallel otherwise. Missing start and end events are added. Subgraphs become lanes, or expanded subprocesses with subgraphs "subprocesses". Styles, clicks and the direction are ignored. Other Mermaid diagrams (sequence, state, class…) are rejected and the diagram stays unchanged. Returns the counts and the warnings, line by line.
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 |
|---|---|---|---|
| name | No | Name of the process, or of its pool when there are lanes. Default: "Process" | |
| mermaid | Yes | The Mermaid flowchart, starting with "flowchart" or "graph", or Markdown text holding a ```mermaid block | |
| flowchart | No | true: keep Mermaid shapes as flowchart shapes. Default: the editor palette | |
| subgraphs | No | What subgraphs are: roles ("lanes", the default) or steps ("subprocesses") |