insert_at_line
Insert text before or after a specified line in an Obsidian note, using 1-based line numbers to place content precisely.
Instructions
Insert text before or after a line number (1-based; see read_note line_numbers: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": {
"file": "<file>",
"line": "<line>",
"content": "<content>"
},
"name": "insert_at_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| line | Yes | ||
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| content | Yes | ||
| position | No |