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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| description | No | ||
| diagram_code | Yes | ||
| diagram_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |