render_plantuml
Render a PlantUML diagram definition and return the image.
The definition should be valid PlantUML syntax wrapped in @startuml/@enduml (sequence, class, component, activity, state, deployment, etc.).
Args:
definition: PlantUML diagram definition text.
filename: Output filename without extension.
format: Output format — "png" (default) or "svg".
PDF is not supported (requires Batik/FOP).
download_link: If True, return a temporary download URL path
(/images/{token}) that expires after 15 minutes; if
False, return inline image bytes. Defaults to True
(URL) — set DIAGRAMS_INLINE_DEFAULT=true on the
server to flip the default. SVG and PNGs larger than
the inline limit always use a download link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | png | |
| filename | No | diagram | |
| definition | Yes | ||
| download_link | No |