render_diagram
Render DGMO diagram markup into SVG or PNG with configurable theme, palette, and format; PNG also saved to a temp file.
Instructions
Render DGMO markup to SVG or PNG. Returns SVG text or base64 PNG image. When format is "png", also saves the image to a temp file and returns the path. For DGMO syntax call get_language_reference (e.g. color a label with a trailing color name: "Sales red").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dgmo | Yes | DGMO diagram markup. Color a label by appending a lowercase color name as the trailing token (e.g. "Sales red"); capitalize ("Red") to use a color word as literal text. | |
| theme | No | Color theme | light |
| format | No | Output format | svg |
| palette | No | Color palette (slate, atlas, blueprint, tidewater, nord, catppuccin, tokyo-night) | slate |