Verify Mermaid diagram
verifyParse and verify source, structure, and renderability. This runs the graphical pipeline. Returns
{ ok, family, summary, warnings, layout: { bounds, nodes, edges } } for valid
diagrams and { ok: false, errors } for parse failures. family is the detected
diagram family and summary a one-line description — check them: ok:true only
means the diagram is structurally valid, not that it is the kind you intended.
Warnings use the layout-rubric codes.
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": {
"source": "<source>"
},
"name": "verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Mermaid source. |