workflow_to_diagram
Convert a workflow specification into a Mermaid flowchart using a simple text DSL or JSON input. Output includes Mermaid source code and formatted diagram block.
Instructions
Turn a workflow spec into a Mermaid flowchart. Accepts a tiny text DSL (a -> b, a -> b : label, chains, ? decisions, start/end) or a JSON array of steps. Returns the Mermaid source + a ```mermaid fenced block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | ||
| source_path | No | ||
| source_text | No | ||
| source_type | No |