preview_diagram
Render one or more DGMO diagrams and open an HTML preview in the browser. Supports theme toggle and optional source display. For DGMO syntax call get_language_reference.
Instructions
Render one or more DGMO diagrams and open an HTML preview in the browser. Supports theme toggle and optional source display. For DGMO syntax call get_language_reference.
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": {
"diagrams": "<diagrams>"
},
"name": "preview_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Color theme | light |
| palette | No | Color palette for the page and every diagram. Given, it beats each diagram's own palette line; omitted, each diagram uses its own, and the page uses slate. | |
| diagrams | Yes | One or more diagrams to preview | |
| include_source | No | Show DGMO source in collapsible blocks |