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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workflow_to_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | ||
| source_path | No | ||
| source_text | No | ||
| source_type | No |