vault_read
Read markdown file contents from an Obsidian vault, with pagination by heading, line range, tail lines, or chunk to handle large notes without loading everything at once.
Instructions
Read the contents of a markdown file from the vault. Supports pagination: read a single section by heading, last N lines, last N heading-level sections, chunk number, or line range. Files exceeding ~80k characters auto-redirect to peek data (file structure/outline) unless a pagination param or force=true is specified. Every pagination mode's output is capped at ~80k characters (~400k with force), cut at a line boundary with a note naming the next 'lines' range to read. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.
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>"
},
"name": "vault_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to vault root (supports short names, e.g. 'devlog') | |
| tail | No | Return the last N lines of the file. Frontmatter is always prepended. | |
| chunk | No | Read a specific chunk of the file (1-indexed). Each chunk is ~80k characters. Use vault_peek to see total chunks. | |
| force | No | Bypass auto-redirect for large files. WARNING: only use when full content is essential, as large files degrade model performance. Hard-capped at ~400k chars (~100k tokens). | |
| lines | No | Read a range of lines from the file (1-indexed, inclusive). | |
| heading | No | Read only the section under this heading. '## Foo' matches level and text; 'Foo' matches the text at any level (exact, case-sensitive, no prefix matching). Errors if the heading is missing or appears more than once. Returns heading line + content until next same-or-higher-level heading. | |
| section_level | No | Heading level for tail_sections (1=`#`, 2=`##`, etc). Default: 2. | |
| tail_sections | No | Return the last N sections at the specified heading level. Frontmatter is always prepended. |