read_vault_context
Read a vault node to decide what to inspect next: returns full content for small notes or an outline with chunk descriptors for larger notes, so you can page targeted sections.
Instructions
Read a node in full if small, otherwise return its overview and chunks.
Check "mode" first: the two shapes differ. mode="full" — the whole note in "content". The outline fields below are absent, not null. mode="outline" — title, summary, size_chars, estimated_tokens, max_tokens, outline_hash, chunks_total, chunk_offset, next_chunk_offset, and "chunks": a page of descriptors (id, heading_path, part, parts, estimated_tokens, excerpt). Choose chunks from the excerpts and heading paths; "content" is absent.
Read a chunk with read_vault_chunk, passing outline_hash and the SAME max_tokens — the hash covers the budget, so a different one is refused rather than answered with a different section. Use the same max_tokens when paging, too.
Paging: chunks_total counts every chunk; next_chunk_offset (null on the last page) is the chunk_offset for the rest. An offset past the last chunk is an error, not an empty page.
max_tokens bounds THIS response (chars/4, not a model tokenizer), not the whole walk: each chunk you then read costs up to that much again. A small budget cannot be honoured exactly — an outline always describes a usable page, so it may reach ~2000 characters however small max_tokens is.
Errors arrive as {"error": "..."}, not as an exception. Accepts a UID, absolute path, or vault-relative path.
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": "read_vault_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| commit | No | ||
| max_tokens | No | ||
| chunk_offset | No |