Token-budgeted vault context export — runs hybrid retrieval, gathers
note bodies + backlinks + recent dailies, packs to a token budget,
returns one ready-to-paste markdown blob.
The MCP-native answer to Smart Connections' "Send to Smart Context"
pattern, but works in any chat (Claude / Cursor / Codex / web UI) by
producing a plain-text bundle. Saves the agent from orchestrating 5
separate tool calls.
Budget enforcement: each note's body is truncated to ~50% of remaining
budget so room remains for backlinks + dailies; oversize bodies get a
[…truncated…] marker. As a final defense-in-depth, the assembled bundle
is hard-capped at budget_tokens × 4 chars and marked […budget cap reached…] if truncated. Top-3 included notes get 1-line backlink
summaries when include_backlinks is true.
Token-budgeted vault context export — runs hybrid retrieval, gathers note bodies + backlinks + recent dailies, packs to a token budget, returns one ready-to-paste markdown blob.
The MCP-native answer to Smart Connections' "Send to Smart Context" pattern, but works in any chat (Claude / Cursor / Codex / web UI) by producing a plain-text bundle. Saves the agent from orchestrating 5 separate tool calls.
Budget enforcement: each note's body is truncated to ~50% of remaining budget so room remains for backlinks + dailies; oversize bodies get a
[…truncated…]marker. As a final defense-in-depth, the assembled bundle is hard-capped atbudget_tokens × 4chars and marked[…budget cap reached…]if truncated. Top-3 included notes get 1-line backlink summaries wheninclude_backlinksis true.