validate_mermaid_syntax
Validate Mermaid diagram syntax by parsing and checking for errors. Ensures code accuracy before generating images or other formats.
Instructions
通过尝试简单转换来验证 Mermaid 图表语法。
参数:
mermaid_code: 要验证的 Mermaid 图表语法代码
返回:
包含验证结果的字典
Input Schema
Name | Required | Description | Default |
---|---|---|---|
mermaid_code | Yes |
Input Schema (JSON Schema)
{
"properties": {
"mermaid_code": {
"title": "Mermaid Code",
"type": "string"
}
},
"required": [
"mermaid_code"
],
"title": "validate_mermaid_syntaxArguments",
"type": "object"
}