get_diagram
Fetch a database diagram by ID to access its full DBML source and table positions for inspection or reuse.
Instructions
Fetch one diagram by id, including its full DBML source and table positions.
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_id": "<diagram_id>"
},
"name": "get_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram_id | Yes | The diagram id (a UUID), from list_diagrams. |