write_note
Atomically create or overwrite a note in a vault. Pass expected_hash for safe overwrites; omit it only when creating a new note.
Instructions
Atomically create or overwrite a note. Requires write_enabled=true. Use expected_hash for safe overwrites (read the note first, pass its hash). Omit expected_hash only when creating a new note.
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": {
"vault": "<vault>",
"path": "<path>",
"content": "<content>"
},
"name": "write_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| vault | Yes | ||
| content | Yes | ||
| client_id | No | ||
| frontmatter | No | ||
| expected_hash | No |