Generate Code Diagram
generateCodeDiagramGenerate detailed component diagrams with key-value rows and optional icons. Use for repositories, services, configs, or data-rich nodes.
Instructions
Code-level or detailed component diagrams with key-value rows plus optional icons/images. Use for repositories, services, configs, or data-rich nodes. Note: setting imageUrl on a node hides all rows (label + image only); use iconUrl when you need both an icon and key-value fields. For high-level system visuals with mostly image nodes, use generateSystemDiagram.
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": {
"content": "<content>"
},
"name": "generateCodeDiagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional document name override. Defaults to the name inside the content payload. | |
| content | Yes | JSON representation of the diagram, with nodes and edges defined as per the schema. |