Display Mermaid diagram
display_mermaidFull Description
Use this tool to display a Mermaid diagram in an interactive UI widget.
- The widget renders the diagram directly in the browser using the Mermaid library — no external service required.
- The widget shows the diagram code, a "Copy Code" button, and the rendered diagram.
- If the diagram has a syntax error, the widget will show the error and offer a repair option.
Tips:
- Always prefer this tool over using code blocks.
- Use documentID when updating an existing diagram that already has a documentID.
Parameters (2 required, 1 optional)
diagramCodestringThe Mermaid diagram code to display
titlestringTitle for the diagram
documentIDstringMust be provided when updating an existing diagram that already has a documentID. Should be omitted when creating a new diagram from scratch.