hedgedoc_create_diagram
Create a HedgeDoc note with a Mermaid diagram by providing a title, diagram type, and code. Optional description adds context, returning the note ID and URL.
Instructions
Create a HedgeDoc note with a Mermaid diagram.
HedgeDoc 1.x renders Mermaid natively in the editor.
title: The title of the diagram note
diagram_type: The Mermaid diagram type (e.g. 'graph TD', 'sequenceDiagram', 'flowchart LR', 'classDiagram', 'gantt', 'pie')
diagram_code: The Mermaid diagram body (without the type header)
description: Optional explanatory text before the diagram Returns the note ID and URL.
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>",
"diagram_type": "<diagram_type>",
"diagram_code": "<diagram_code>"
},
"name": "hedgedoc_create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| description | No | ||
| diagram_code | Yes | ||
| diagram_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |