Diagrams tools.

Diagrams live inside documents. `listDiagramTypes` lists every kind with its default style, and `getDiagramTypeGuide` gives the syntax for one. Insert a diagram from its source, update it, or render source to a picture without saving it. Architecture diagrams can use cloud and developer icon sets, found with `listArchitectureIcons`.

The live list

Your AI tool can call searchTools with category: "diagrams" for the current list of these tools with every input. This page is the readable copy.

The tools

Every tool below keeps to the access of the key or sign-in that calls it, and to the person’s own role. A tool only sees the tools it may use.

  • deleteDiagramInDocument

    Remove a diagram from a document.

  • getDiagramImage

    Render a diagram that ALREADY exists in a document to an IMAGE (svg/png/jpeg @1x/2x/3x) and return it as a temporary signed URL (expires in 1 hour) plus, for png/jpeg, the image inline so you can se…

  • getDiagramInDocument

    Read a diagram's current source.

  • getDiagramTypeGuide

    Syntax reference for a specific diagram type.

  • insertDiagramInDocument

    Add a new diagram inline in a document.

  • listArchitectureIcons

    Icon sets for cloud and developer architecture diagrams.

  • listDiagramTypes

    Catalogue of all supported diagram types.

  • renderDiagram

    Generate a diagram from its DSL/code and get the IMAGE back, WITHOUT inserting it into any document or whiteboard.

  • searchInfographicTemplates

    Semantic search over the 276 AntV Infographic templates. Call this FIRST when building an `infographic` diagram so you pick the right structure for the content.

  • updateDiagramInDocument

    Replace or patch a diagram (versioned).