generate_diagram_from_json
Convert JSON data into visual diagrams to illustrate API responses, database schemas, dependency trees, or configuration files. Generate flowcharts, ERDs, system architectures, and other diagram types from structured JSON input.
Instructions
Generate a diagram from a JSON structure. Use this tool when the user wants to visualise JSON data such as API responses, database schemas, dependency trees, configuration files, or any structured data. Pass the raw JSON string as content. Returns a link to view and edit the generated diagram in the browser.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | A JSON string representing the structure to visualise. This can be API response data, a database schema, a config file, dependency tree, or any other structured JSON. Example: '{"users": [{"id": 1, "orders": [{"id": 101}]}]}' | |
| prompt | No | Instruction for how to interpret or render the JSON. Example: "Show as an entity relationship diagram with cardinality labels" | |
| diagramType | No | Preferred diagram type. Defaults to 'erd' for schemas and 'flowchart' for other JSON. | |
| isIconEnabled | No | Set to true when the user asks to include icons in the diagram. |