Diagram AI
diagram_aiGenerate rendered diagrams from plain-English descriptions. Specify diagram type, entities, and relationships to receive SVG, PNG, JPEG, or PDF output.
Instructions
Diagram AI. Describe a diagram in plain English via GET and get a rendered image back. Powered by AI. Credit cost: 10 credits per call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "diagram_ai"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share | No | Set share=true to persist the config and receive JSON instead of an image: { id, render_url, view_url, embed_url, expires_in }. Free plan: 3-day expiry. Paid plan: 6-month expiry. Default: false. | |
| fields | No | Comma-separated list of fields to keep in the response, with dot notation for nested fields (e.g. name,location.city). Does not change the credit cost. | |
| prompt | Yes | Describe your diagram in plain English (max 1000 chars). Be specific: mention the diagram type, key entities, and relationships. | |
| diagram_type | No | Preferred diagram language. AI chooses if omitted. Examples: "mermaid", "d2", "plantuml", "graphviz". Allowed values: mermaid, d2, plantuml, graphviz. Default: "mermaid". | |
| output_format | No | Output format. Default: "svg". Allowed values: svg, png, jpeg, pdf. Default: "svg". |