validate_uml checks the type, format, code length and basic syntax locally and returns suggestions, so the ordinary mistakes surface without a Kroki call. generate_uml_batch takes a list with one shared output directory and reports results per index, which is the shape you want when a rename means regenerating every diagram in a document.
A Kroki-backed diagram renderer with four tools: list the supported types, validate source locally, render one diagram, or render a batch in a single call.
- A diagram rendered from source by type — class, sequence, mermaid and d2 among them — with output format, theme, scale and output directory
- A batch of diagrams rendered in one call, sharing an output_dir, returning per-index results or errors
- Local validation of diagram type, format, code length and basic syntax, returning errors and suggestions without calling Kroki
- The supported types listed with their Kroki backend, description and formats, for clients that cannot read the uml://types resource
Uv on your PATH, which resolves the Python runtime through UV_PYTHON. Rendering goes out to Kroki; validation runs locally.
