create_note
Create a new note in Trilium Notes with markdown or HTML content. Set title, type, attributes, and parent note to organize knowledge instantly.
Instructions
Create a new note in Trilium. Content can be provided as markdown (default) or HTML via the contentFormat parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | MIME type for code notes (e.g., "application/javascript") | |
| type | No | Type of note (default: "text") | text |
| title | Yes | Title of the new note | |
| content | Yes | Content of the note. Markdown by default — use contentFormat to switch to HTML. | |
| attributes | No | Attributes (labels/relations) to attach to the note. Example: [{"name": "tag", "value": "recipe"}, {"name": "priority", "value": "high"}] | |
| parentNoteId | No | ID of the parent note (default: "root" for top-level) | root |
| contentFormat | No | Format of the content: "markdown" (default) or "html". When "markdown", content is converted to HTML before saving. | markdown |