validate_uml
Check diagram type, format, code length, and basic syntax locally before render; returns errors and suggestions without calling Kroki.
Instructions
Validate diagram type, format, code length, and basic syntax locally before render (no Kroki call). Returns errors and suggestions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Diagram source text. | |
| strict | No | When True, apply extra Mermaid/D2 checks (no extra PlantUML rules). | |
| diagram_type | Yes | Same as generate_uml (see uml://types). | |
| output_format | No | Intended output format (default svg); must be allowed for the type. | svg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||