validate_diagram_tool
Validate Ilograph diagrams by checking YAML syntax and schema compliance. Provides detailed error messages, warnings, and suggestions to ensure diagram correctness.
Instructions
Validates Ilograph YAML syntax and structure.
This tool performs comprehensive validation of Ilograph diagrams:
1. First validates YAML syntax for structural correctness
2. Then validates Ilograph-specific schema requirements
3. Provides detailed error messages, warnings, and suggestions
4. Can optionally use official Ilograph specification for context
Args:
content: The Ilograph diagram content as a string
Returns:
dict: Validation result with success/failure, errors, warnings, and suggestions
Format: {
"success": bool,
"yaml_valid": bool,
"schema_valid": bool,
"summary": {"total_errors": int, "total_warnings": int, "total_info": int},
"errors": [{"level": str, "message": str, "line": int, "suggestion": str}, ...],
"warnings": [...],
"info": [...],
"assessment": str
}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"title": "Content",
"type": "string"
}
},
"required": [
"content"
],
"type": "object"
}