vault_write
Create a new Obsidian note from a template, set required frontmatter and tags, and pass custom variables; use a .md path outside dot-folders without overwriting existing notes.
Instructions
Create a new note from a template. Notes must be created from templates to ensure proper frontmatter. The path must be a .md file outside dot-folders (not .obsidian/, .git/ or .trash/), and an existing note is never overwritten.
Available templates:
adr: ADR-XXX: {title}
daily-note: {title}
devlog-session: Template for devlog-session
devlog: Development Log
fleeting-note: {title}
literature-note: {title}
meeting-notes: Meeting: {title}
moc: {title}
note: {title}
permanent-note: {title}
project-index: {title}
research-note: {title}
task: {title}
troubleshooting-log: {title}
Built-in variables (auto-substituted):
<% tp.date.now("YYYY-MM-DD") %> - Current date
<% tp.file.title %> - Derived from output path filename
Required: frontmatter.tags - provide at least one tag for the note.
Optional: frontmatter.session, frontmatter.status, frontmatter.priority, frontmatter.project, frontmatter.deciders, frontmatter.due, frontmatter.source (depending on template type).
Pass custom <%...%> variables via the 'variables' parameter. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.
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": {
"template": "<template>",
"path": "<path>"
},
"name": "vault_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output path relative to vault root | |
| template | Yes | Template name (filename without .md from 05-Templates/) | |
| variables | No | Custom variables for <%...%> patterns in body (key-value string pairs) | |
| createDirs | No | Create parent directories if they don't exist | |
| frontmatter | No | Frontmatter fields to set (e.g., {tags: ['tag1', 'tag2'], status: 'active'}) |