Skip to content

Vault & Notes Tools

Vault and notes tools let agents read markdown notes, follow backlinks, manage indexed sources, and audit vault health.

Fetch a vault note’s full markdown body or specific sections, plus structural metadata (frontmatter, heading outline, tags).

Use after brain_search or brain_context identifies a relevant note. For code symbols, use read_symbols instead.

ParameterTypeRequiredDescription
uidstringNoNote UID (e.g. note:vlt:MyVault:abc123). Preferred for unambiguous lookup.
titlestringNoNote title (case-insensitive) or vault-relative path, with or without .md. An ambiguous title is refused with candidate UIDs.
include_bodybooleanNoInclude the full markdown body. Default true. Set to false to get only metadata.
sectionsstring[]NoHeading names, at most 256. If provided, returns only those sections instead of the full body. Case-insensitive match. Names that match no heading are listed in missing_sections.
body_offsetintegerNoContinue a long body from next_body_offset (Unicode characters).
body_versionstringNoThe body_version from the first page; a continuation of a note that changed is refused.

Provide either uid or title. MCP output is bounded (20 KB of logical body per page); continue with body_offset and body_version for the rest. note_get answers while an index is publishing, and still fails closed on an abandoned one. A miss returns isError: true with a not_found envelope.

Find every note that wiki-links TO a specific target note, revealing the reverse link graph.

ParameterTypeRequiredDescription
uidstringNoNote UID. Preferred for unambiguous lookup.
titlestringNoNote title (case-insensitive) or vault-relative path, with or without .md. An ambiguous title is refused with candidate UIDs.
limitintegerNoMax backlink occurrences to return, 1—1000. Default 20.

Provide either uid or title. Returns source note paths, linking sections, confidence scores, and display text. For forward links (what a note links to), read the note body with note_get.

Index a new vault, code repo, or markdown folder into the brain graph. Auto-detects source type from directory contents.

ParameterTypeRequiredDescription
pathstringYesAbsolute or ~/-relative directory path to the vault, repo, or markdown folder to index.
namestringNoFriendly display name (vaults only), at most 255 characters, not blank, no control characters. Defaults to the directory name. Has no effect for code repos.

Check brain_status first to avoid re-indexing already-indexed sources. A vault name must be unique ignoring case; a name another vault already holds is refused. Pseudo-filesystems (/proc, /sys, /dev) and other system roots are refused as sources. A vault whose only skips are .brainignore exclusions reports coverage_status: "complete"; any other gap reports "degraded".

Remove an indexed code repository or markdown vault from the brain graph permanently.

ParameterTypeRequiredDescription
targetstringYesRepo name (including the derived name other tools show), vault name, filesystem path, file:// URL, exact repo URL, or UID of the source to remove.

Removal is permanent. The source must be re-indexed with brain_add_source to restore. A target that matches more than one source, including a repo and a vault that share a name, is refused with the candidates; pass the UID. Repo URLs must match exactly; a partial URL never selects a repo. A vault whose stored name contains control characters is listed escaped and can be removed by path or UID.

committed: true means the removal happened and is durable, even when reconciliation_warnings is non-empty. committed: false means nothing was removed.

Find wikilinks in the vault that did not resolve cleanly — ambiguous or low-confidence targets (confidence < 1.0).

ParameterTypeRequiredDescription
max_suggestionsintegerNoMax suggested target UIDs per broken link. Default 5.
limitintegerNoMax broken links to return (default 50). Total count is always reported.

Each result includes fuzzy-matched suggested target UIDs for repair. Only detects wikilink resolution issues, not broken external URLs.

Find notes with zero inbound and zero outbound wikilinks — disconnected from the knowledge graph.

ParameterTypeRequiredDescription
vaultstringNoRestrict to this vault: its UID, name or root path. An unknown or ambiguous vault is an error.
path_prefixstringNoRestrict to notes whose file path starts with this prefix.
allowliststring[]NoNote paths/titles to exclude. Overrides the default index/MOC allowlist when provided.
limitintegerNoMax orphan documents to return (default 50). Total count is always reported.

Default allowlist excludes Projects.md, index.md, README.md, and MOC-containing paths.

Discover thematic structure of a vault by running Louvain-style local moving community detection over the note-to-note wikilink graph.

ParameterTypeRequiredDescription
resolutionnumberNoResolution. Higher yields more, smaller clusters. Default 0.5.
limitintegerNoMax clusters to return (default 50). Total count is always reported.

Each cluster is labelled by its most central member (highest PageRank).

Explore tag relationships in a vault via co-occurrence analysis.

Two modes:

  1. With tag — returns co-occurring tags for a focus tag, sorted by shared-note count.
  2. Without tag — returns the full tag co-occurrence graph for all tags, sorted by note count descending.
ParameterTypeRequiredDescription
tagstringNoFocus tag (with or without leading #). When omitted, returns the full tag co-occurrence graph.
limitintegerNoMax tags to return in the all-tags listing (default 50). Ignored when a specific tag is queried.

Get a one-shot health summary of a vault’s document graph: note counts, broken links, orphans, tag distribution, and notes-by-year.

ParameterTypeRequiredDescription
top_tags_limitintegerNoMax entries in top_tags. Default 10.

Returns: total_notes, total_wikilinks, broken_wikilinks, orphans, avg_outdegree, top_tags, notes_by_year.

Audit a memory-bank vault for health problems across seven categories: stale notes, contradictions, orphans, broken wikilinks, supersession chains, schema drift, and dangling relationships.

ParameterTypeRequiredDescription
limitintegerNoMax results per lint category (default 50). Totals are always reported.

All seven keys are always present in output, even on an empty vault. Schema drift checks against _templates/<kind>.md templates.

Propose promotions of vault notes up memory tiers (daily logs to ideas to project files). Dry-run by default.

ParameterTypeRequiredDescription
applybooleanNoSet to true to execute moves. Default false (safe dry-run).
limitintegerNoMax proposals, 1—1000 (default 50). Applied before anything moves. Total count is always reported.

Promotes daily logs referenced by 3+ idea notes (over 14 days old) and ideas referenced by both sync.md and status.md. With apply: true, at most limit proposals are moved. Proposals an earlier apply already moved are counted in proposals_already_applied, and refresh_vault_paths names the vaults to refresh: the graph is not refreshed automatically after a move.

Walk the typed relationship graph from a note — Supersedes, DependsOn, CausedBy, RelatesTo — without generic wikilink noise.

ParameterTypeRequiredDescription
uidstringYesSeed note UID to traverse from.
edge_typesstring[]NoEdge types to follow: Supersedes, DependsOn, CausedBy, RelatesTo (case/format-insensitive). Default: all four.
depthintegerNoMax BFS depth, 1—15. Default 2.
limitintegerNoMax related notes to return, 1—1000. Default 50.

Returns only typed neighbours, not generic wikilinks.