create_note
Create a new Markdown note in an Obsidian vault with initial content. Missing parent folders are created automatically, and existing notes are only replaced when overwrite is set.
Instructions
在 Obsidian vault 中创建新笔记并写入初始内容。路径为 vault 内相对路径(以 .md 结尾),不存在的父目录会自动创建;目标已存在时默认报错,仅当显式传 overwrite=true 才覆盖。
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>"
},
"name": "create_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 新笔记路径(vault 内 POSIX 风格相对路径,需以 .md 结尾;父目录不存在时自动创建) | |
| content | No | 初始 Markdown 内容;默认为空笔记 | |
| if_match | No | 乐观锁(overwrite=true 时可用):传入上次 read_note 返回的 etag,与当前内容不符时拒绝写入 | |
| overwrite | No | 目标已存在时是否覆盖;默认 false(报错) |