Save diagram
diagram_saveRender and save a Mermaid diagram as .mmd/.svg/.png under docs.dir, update the README index, and optionally publish a digest to lv24-brain.
Instructions
Render and store a diagram as NN-slug.mmd/.svg/.png under docs.dir, update the README index, and optionally publish a digest to lv24-brain.
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": {
"title": "<title>",
"mermaid": "<mermaid>"
},
"name": "diagram_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| png | No | ||
| theme | No | ||
| title | Yes | ||
| mermaid | Yes | ||
| background | No | ||
| publish_to_brain | No | Best-effort brain note (default true) |