generate_diagram
Generates sequence, flowchart, class, or architecture diagrams from natural-language descriptions and returns diagram code for documentation and analysis.
Instructions
Universal diagram generator - automatically creates the appropriate diagram type.
Args:
description: Natural language description of what to diagram
diagram_type: Type of diagram - "sequence", "flowchart", "class", or "architecture"
output_format: Output format (varies by diagram type)
title: Optional custom title
Returns:
Dictionary with generated diagram code and metadata
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": {
"description": "<description>",
"diagram_type": "<diagram_type>"
},
"name": "generate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| description | Yes | ||
| diagram_type | Yes | ||
| output_format | No | mermaid |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |