Integrations

draw.io

Read, export and edit the diagram in front of you: add shapes and connectors, change or delete them, or turn Mermaid into shapes.

XataWorks Browser showing draw.io with a new, empty diagram and its shape library, with the page-tools list open over it from the browser toolbar, headed Page tools (9), with a filter box, chips for each class, and the tools listed with their classes, beginning with Read the current draw.io diagram, List draw.io diagram elements and Export the draw.io diagram as SVG, each Read only.
draw.io, with a new diagram open: every tool its adapter offers.

Where it works

draw.io in the browser, at app.diagrams.net and the other diagrams.net and draw.io addresses.

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

draw.io keeps the diagram in the page, so the tools work on the editor 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 draw.io diagram get_diagramRead the diagram currently open in the draw.io editor.
  • List draw.io diagram elements list_elementsList the elements (shapes and connectors) of the current draw.io diagram.
  • Export the draw.io diagram as SVG export_svgExport the current draw.io diagram as SVG.

Adds and changes Mutating

These change something, and the adapter declares the change additive: a create, an append, a status set.

  • Insert Mermaid into the draw.io diagram insert_mermaidInsert a Mermaid definition into the current draw.io diagram — draw.io converts the Mermaid to shapes.
  • Add a shape to the draw.io diagram add_shapeAdd a shape (vertex) to the current draw.io diagram.
  • Add a connector to the draw.io diagram add_connectorAdd a connector (edge) between two existing elements of the current draw.io diagram, by their ids (from list_elements).

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 draw.io diagram set_diagramReplace the ENTIRE draw.io diagram with the provided mxGraph XML (a <mxGraphModel> or <mxfile> document).
  • Update a draw.io element update_elementUpdate an element of the current draw.io diagram by id (from list_elements): change its label, style, and/or geometry (x/y/w/h).
  • Delete a draw.io element delete_elementDelete an element (shape or connector) from the current draw.io diagram by id (from list_elements).

See Page tools in the user guide for how to see what a tab offers, or every integration.