read
Retrieve a note's frontmatter, outline, and body, or select a specific heading or line range, from an Obsidian-compatible Markdown vault to surface project memory and documentation.
Instructions
Read a note: frontmatter, outline and body (or one section / line range).
The whole body is cut at 20,000 characters (truncated: true); then use heading or lines. The outline (each heading with "line" and "end") comes only with the whole note, or always with outline=true; content=false returns just frontmatter and outline. Returns JSON {"path", "frontmatter", "fm_valid", "outline" (when included), "content", "truncated", "total_lines", "range" (with heading or lines: "first-last" file lines)}. With notes, returns JSON {"notes": [one object per note as above, without outline unless outline=true; a note that fails is {"note", "error"}], "pending": [notes left out once the output passes 50,000 characters; call read again with them]}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Vault-relative path (with or without .md) or a note name / alias. For several notes use notes. | |
| lines | No | 1-based inclusive line range of the file, "10-40". | |
| notes | No | Several notes to read whole in one call (up to 20), instead of note. heading and lines do not apply. | |
| content | No | false returns only frontmatter and outline (each heading with its line and end), to pick a section before reading. | |
| heading | No | Return only this section (case-insensitive). | |
| outline | No | Include the heading outline. Default: only when reading the whole note. |