replace_lines
Replace or delete a specific range of lines in an Obsidian note by specifying 1-based start and end lines; use empty content to remove the range.
Instructions
Replace (or delete, with empty content) a range of lines (1-based, inclusive).
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>",
"start_line": "<start_line>",
"end_line": "<end_line>",
"content": "<content>"
},
"name": "replace_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| content | Yes | ||
| end_line | Yes | ||
| start_line | Yes |