Koji Okuji23 downloadsBuild clean Context Packs from your Obsidian vault for NotebookLM.
Bundle your Obsidian notes into clean, AI-ready files for NotebookLM.
When you paste raw Obsidian notes into NotebookLM, the results are noisy. Broken [[wikilinks]], frontmatter YAML, ![[embedded images]], %%comments%%, and #inline-tags all end up in the source — and NotebookLM treats them as meaningful content.
This plugin solves that.
Context Pack bundles related notes into a single formatted .md file — organized by folder, tag, or MOC — and strips all Obsidian-specific syntax before export. Each note section includes its vault path so NotebookLM understands your knowledge hierarchy.
Export packages your notes as a clean ZIP file, ready to upload to NotebookLM as individual sources.
Both features run the same formatter: frontmatter is removed, wikilinks are resolved, embeds and comments are stripped, and blank lines are collapsed.






Download main.js, styles.css, and manifest.json from the latest release and copy them to .obsidian/plugins/context-pack-for-notebooklm/ in your vault.
All commands are available from the ribbon icon (📦) in the left sidebar, the Command Palette (Cmd/Ctrl+P), and right-click menus in the file explorer.
Bundles multiple notes into one .md file for NotebookLM.
| Trigger | Source |
|---|---|
| Ribbon → Context Pack (choose folder) | All notes in a selected folder |
| Ribbon → Context Pack (choose tag) | All notes with a selected tag |
| Right-click file → Create Context Pack from this MOC | Notes linked from the current file |
| Command: Create Context Pack from MOC | Same as above |
The pack is downloaded as pack-<source>-<date>.md.
Exports notes as individual cleaned-up .md files in a ZIP.
| Trigger | Source |
|---|---|
| Ribbon → Export entire vault (ZIP) | Entire vault |
| Ribbon → Export folder (ZIP) | Selected folder |
| Ribbon → Export by tag (ZIP) | Notes with selected tag |
| Right-click folder → Export this folder (ZIP) | That folder |
| Right-click file → Export this note (.md) | Single note |
Automatically generates a MOC note — a list of [[links]] to all notes in a folder or tag. Use it as an index, then run Create Context Pack from this MOC to pack exactly those notes.
| Trigger | Source |
|---|---|
| Ribbon → Create MOC (from tag) | All notes with selected tag |
| Right-click folder → Create MOC from this folder | All notes in folder |
| Setting | Description | Default |
|---|---|---|
| Output folder | Where to save ZIP exports | Vault root |
| Flatten folder structure | Merge all files into one folder in the ZIP | Off |
| Include frontmatter title | Convert title: and tags: to plain text at the top of each note |
On |
| Open folder after export | Auto-open the output folder when done (desktop only) | Off |
| Custom replacement rules | Find/replace rules applied before export (plain text or regex) | — |
Want to try the plugin without setting up your vault first? Download a ready-made sample vault and open it in Obsidian.
| Vault | Notes | Download |
|---|---|---|
| 🇺🇸 English (recipes / travel / books) | 60 notes | vault-sample-en.zip |
| 🇯🇵 Japanese(料理 / 旅行 / 読書) | 60件 | vault-sample-jp.zip |
recipes/ folder, explore by tag, or build a MOCpack-xxx.md file is downloaded.md fileOnce you've packed your recipe notes and uploaded them to NotebookLM, try asking:
| Question | What you get |
|---|---|
| "What can I make for dinner tonight using pork and vegetables?" | Suggestions filtered from your notes |
| "Which recipes take under 30 minutes?" | Quick-cook recipes from your collection |
| "I want something warming for a cold day. Any ideas?" | Miso soup, stew, hot pot, etc. |
| "Compare the ingredients in carbonara and gratin" | Side-by-side breakdown |
| "Give me a shopping list for making nikujaga for 4 people" | Ingredient list pulled directly from your note |
| "What Chinese dishes are in my notes?" | All Chinese recipes listed |
Tip: The more notes you include in the pack, the richer the answers. Try packing your entire recipe folder at once.
MIT — made by dualyzeAI