Pack vault context for an AI question (token-budgeted)
obsidian_context_packRetrieves top relevant notes using hybrid search, gathers backlink summaries and recent dailies, deduplicates, and packs into a token-budgeted markdown bundle for direct pasting into any AI chat.
Instructions
Given a question, retrieve the top relevant notes (via hybrid search), gather backlinks summaries + optionally recent dailies, deduplicate, pack to a token budget, return a single ready-to-paste markdown bundle. Saves the agent ~5 separate tool calls; produces a coherent context blob you can paste into any AI chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Topic or question to gather context for | |
| folder | No | Restrict retrieval to this folder (vault-relative) | |
| budget_tokens | No | Approximate token budget (default 4000, ~4 chars/token) | |
| recent_dailies | No | Include the last N daily-format notes (YYYY-MM-DD basenames). Default 0 (off). | |
| include_backlinks | No | Include 1-line backlink summaries for top-3 notes (default true) |