Add to note
add_to_noteAdd text to the end or start of a note, or of the section under a heading, without quoting existing text. With a heading, end means the end of the heading's own text, before its first subheading. Only # headings count; === and --- underlined headings aren't recognized. Text goes on its own lines directly after the last line (end) or before the first (start), so plain text joins the paragraph next to it in Obsidian; begin text with an empty line (end) or end it with one (start) to make a separate paragraph. A heading needs no blank line, and neither does a list item at end; at start, end a list item with an empty line too. A blank line is added only where text would otherwise turn a line next to it into a heading (a --- or === line). Text must close every code fence and %% comment it opens. Returns once Obsidian Sync has the edit, or after about 35s with status upload_pending. A repeat edit within 10 to 30s of the note's last upload returns at once with status waiting_for_upload; it still uploads.
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>",
"text": "<text>"
},
"name": "add_to_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | vault-relative path of an existing .md note, as returned by list_files or search_notes, or an obsidian:// URL for a file in this vault | |
| text | Yes | text to add | |
| heading | No | # heading whose section gets the text, such as Log, or a path through its parent headings such as Day 2 > Notes when the text repeats. Omit to target the whole note | |
| position | No | end (the default) or start of the note or section |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 1-based line of the note where the added text starts | |
| path | Yes | vault path of the note | |
| sha256 | Yes | hex SHA-256 of the note after the edit; pass it as expected_sha256 to write_note | |
| status | Yes | uploaded, waiting_for_upload or upload_pending, as patch_note reports them | |
| heading | No | the matched heading's full path | |
| uploaded | Yes | whether Obsidian Sync has the edit; if false the edit is saved and still queued for upload, as status explains |