obsidian_write_note
Create or modify notes in Obsidian with flexible writing modes including create, overwrite, append, and prepend. Supports content with optional YAML frontmatter metadata for organized knowledge management.
Instructions
Create or modify notes with content and optional frontmatter.
Primary tool for Zettelkasten note creation. Supports multiple modes:
- CREATE: Only creates new notes (safe, won't overwrite)
- OVERWRITE: Replaces entire file
- APPEND: Adds content to end
- PREPEND: Adds content to beginning
Args:
params (WriteNoteInput): Contains:
- filepath (str): Where to write the note
- content (str): Note content
- mode (WriteMode): create/overwrite/append/prepend (default: create)
- frontmatter (Dict, optional): YAML frontmatter metadata
Returns:
str: Success message with note location
Example:
Create atomic note: filepath="Zettelkasten/202411061234 Systems Thinking.md",
content="# Systems Thinking...", frontmatter={'tags': ['zettelkasten', 'concepts']}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Input Schema (JSON Schema)
{
"properties": {
"params": {
"$ref": "#/$defs/WriteNoteInput"
}
},
"required": [
"params"
],
"type": "object"
}