Validate Uml
validate_umlChecks diagram code for structural errors and compiles it with Kroki to confirm renderer acceptance, returning errors, suggestions, and compile timing.
Instructions
Validate a diagram by compiling it on the renderer. Runs local structure checks first, then a real Kroki compile, so valid reflects what the renderer accepts (a TikZ figure that does not compile is reported invalid). Returns errors, suggestions, compiled, and compile_ms.
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": {
"diagram_type": "<diagram_type>",
"code": "<code>"
},
"name": "validate_uml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| strict | No | ||
| diagram_type | Yes | ||
| output_format | No | svg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||