Write Note
writeCreate notes or attachments, or replace an entire file, with parent folders created automatically; returns the stored path and whether it was created.
Instructions
Create a note or attachment, or replace one whole; returns its path and whether it was created.
Use edit for targeted changes and append to add to the end. Parent folders are created as needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the vault, such as `"Journal/note.md"` or `"assets/photo.png"`; the extension decides between note and attachment. | |
| content | No | The note's Markdown body, without frontmatter. | |
| if_match | No | Etag from read, to replace an existing file; omit for a new file. | |
| frontmatter | No | The note's frontmatter, such as `{"title": "My Note", "tags": ["draft"]}`. | |
| content_base64 | No | An attachment's bytes, base64-encoded; for paths not ending in .md. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||