create_diagram
Generate visual diagrams from code to create shareable images and editable links on Eraser.io for sequence diagrams, flowcharts, and architecture diagrams.
Instructions
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": "create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Diagram content in Eraser DSL format | |
| diagramType | No | Type of diagram to create | sequence-diagram |
| theme | No | Theme for the diagram | dark |
| background | No | Whether to include background in the rendered image |