generate_diagram
Turn Mermaid.js syntax into a shareable FigJam diagram—flowchart, sequence, state, Gantt, or ER—and get a direct URL to open it.
Instructions
Do what: Creates a flowchart, sequence diagram, state diagram, gantt chart, or ER diagram in FigJam from Mermaid.js syntax. Expected output: { url (string) } — direct URL to the created FigJam diagram. MUST show this URL as a markdown link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short descriptive title for the diagram. | |
| fileKey | No | Optional. Existing FigJam file key. | |
| planKey | No | Plan key from whoami. | |
| userIntent | No | Description of what the user wants to accomplish. | |
| mermaidSyntax | Yes | Valid Mermaid.js code. |