open-diagram

v0.6.2
io.github.lukendeasy/open-diagram Checked 4 hours ago Published 5 days ago

Architecture diagrams from JSON or Mermaid that check their own layout and name each problem.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

format_guide

How to write a diagram for open-diagram: a JSON example to copy, every key, Mermaid support, and how to fix each kind of layout problem. Read it once before the first diagram.

template

List the diagram templates (no name), or return one template as JSON to start from (with its name). Keep its shape, replace its labels, then call check and draw.

ParameterTypeDescription
namestring

check

Build a diagram in memory and list its layout problems, without writing files. source is the diagram as JSON or Mermaid text; format is 'json', 'mermaid' or 'auto'. Fix every problem it names and check again until it reports 0, then call draw.

ParameterTypeDescription
source *string
formatstring

describe

Return what a diagram says in plain words: each block, its tiles and states, the groups, every line and its label, and the key. Compare it with the user's request.

ParameterTypeDescription
source *string
formatstring

draw

Draw a diagram from JSON or Mermaid text. Writes NAME.svg and NAME.png into the output folder and returns the layout problems, the file paths, a plain-words description and (with picture=true) the picture itself. Look at the picture before answering, and fix any problem it reports.

ParameterTypeDescription
source *string
formatstring
namestring
pictureboolean