render_erd
Generate a Mermaid ERD from your database schema and write it directly to disk as .mmd, .md, and .html files for embedding in documentation.
Instructions
Generate a Mermaid ERD from a schema and WRITE it to disk so it can be embedded directly in a document with no copy-paste. Writes out_path (.mmd), a sibling .md with the fenced block, and a self-contained .html preview.
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": {
"out_path": "<out_path>"
},
"name": "render_erd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_path | Yes | Where to write the .mmd file, e.g. docs/erd.mmd | |
| source_path | No | ||
| source_text | No | ||
| source_type | No |