Integrations
Mermaid Live
Read, export and edit the diagram in the Mermaid Live Editor: replace it, add to it, find and replace in it, or change its settings.

Where it works
The Mermaid Live Editor, at mermaid.live.
Open the site in XataWorks Browser and the tools below appear in the page-tools list in the browser’s toolbar, ready for the agent in any chat that has the tab. There is nothing to install or switch on.
How it works
The diagram is the Mermaid text in the editor, and the tools work on that text directly. Nothing is fetched and nothing needs signing in to.
Tools
Each tool with the name XataWorks shows you, the name the agent uses, and the first sentence of the description the agent reads. You do not call them yourself: ask for what you want in your own words, and the agent picks the tool. Before one runs, XataWorks asks you, according to its class; Approvals and permissions explains the question and each answer.
Reads Read only
These only look things up.
- Read the current Mermaid diagram
get_diagramRead the diagram currently open in the Mermaid Live editor. - Export the Mermaid diagram as SVG
export_svgExport the current Mermaid diagram as SVG.
Adds and changes Mutating
These change something, and the adapter declares the change additive: a create, an append, a status set.
- Append to the Mermaid diagram
append_to_diagramAppend one or more Mermaid statement lines to the current source (e.g. add nodes/edges).
Changes that may not be undoable Consequential
These may make changes that cannot be undone, so XataWorks treats them with the most care.
- Replace the Mermaid diagram
set_diagramReplace the ENTIRE Mermaid source with new Mermaid code. - Find and replace in the Mermaid diagram
replace_in_diagramSurgically edit the Mermaid source: replace every occurrence of a find string with a replacement (e.g. rename a node or remove an edge). - Set the Mermaid config
set_configSet the Mermaid config for the current diagram (an object or a JSON string).
See Page tools in the user guide for how to see what a tab offers, or every integration.