Validate a diagram
validate_diagramValidate a Fluxygram diagram before sharing: checks it with the same validator the viewer uses and returns either a valid summary or every problem with its path so you can fix it.
Instructions
Checks a Fluxygram diagram with the same validator the viewer uses. Returns "valid" with a short summary, or every problem with its path so you can fix it. Always validate before sharing.
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": "<diagram>"
},
"name": "validate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the error messages. Default en. | |
| diagram | Yes | The diagram: the JSON object or its text. |