Write Note
vault_writeCreate or overwrite an Obsidian vault note with auto-managed timestamps and attribution; omit frontmatter to preserve existing fields, or provide it to replace them.
Instructions
Create or overwrite a note. Auto-manages created/modified timestamps and created_by/last_modified_by in frontmatter. If the file exists, preserves original created/created_by values, and keeps its existing frontmatter when you pass none. A non-empty frontmatter object REPLACES the existing fields (use vault_frontmatter to change individual fields).
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": {
"path": "<path>",
"content": "<content>"
},
"name": "vault_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path for the note | |
| content | Yes | Markdown body content | |
| agent_name | No | Agent name for attribution (defaults to server config) | |
| create_dirs | No | Create parent directories if they don't exist | |
| frontmatter | No | Frontmatter for the note (created/modified/created_by/last_modified_by are auto-managed). Omit to keep an existing note's frontmatter; if given, it replaces the existing fields. |