Context Pack for NotebookLM

approved

by Koji Okuji

This plugin has not been manually reviewed by Obsidian staff. Build clean Context Packs from your Obsidian vault for NotebookLM.

18 downloadsUpdated 1d agoMIT

Context Pack for NotebookLM

Bundle your Obsidian notes into clean, AI-ready files for NotebookLM.


The problem

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.


What it does

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.


Screenshots

Ribbon menu — access everything from one icon

Ribbon menu

Choose a folder to pack

Folder picker

Or choose by tag

Tag picker

Progress dialog with cancel

Progress dialog

Right-click any folder in the file explorer

Right-click menu

The resulting Context Pack — clean, structured, AI-ready

Context Pack output


Installation

Community plugins (recommended)

  1. Open Settings → Community plugins → Browse
  2. Search for Context Pack for NotebookLM
  3. Install and enable

Manual

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.


Usage

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.

Context Pack

Bundles multiple notes into one .md file for NotebookLM.

TriggerSource
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 MOCNotes linked from the current file
Command: Create Context Pack from MOCSame as above

The pack is downloaded as pack-<source>-<date>.md.

Export (ZIP)

Exports notes as individual cleaned-up .md files in a ZIP.

TriggerSource
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

MOC (Map of Content)

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.

TriggerSource
Ribbon → Create MOC (from tag)All notes with selected tag
Right-click folder → Create MOC from this folderAll notes in folder

Settings

SettingDescriptionDefault
Output folderWhere to save ZIP exportsVault root
Flatten folder structureMerge all files into one folder in the ZIPOff
Include frontmatter titleConvert title: and tags: to plain text at the top of each noteOn
Open folder after exportAuto-open the output folder when done (desktop only)Off
Custom replacement rulesFind/replace rules applied before export (plain text or regex)

Sample data

Want to try the plugin without setting up your vault first? Download a ready-made sample vault and open it in Obsidian.

VaultNotesDownload
🇺🇸 English (recipes / travel / books)60 notesvault-sample-en.zip
🇯🇵 Japanese(料理 / 旅行 / 読書)60件vault-sample-jp.zip
  1. Download and unzip
  2. In Obsidian: Open another vault → Open folder as vault → select the unzipped folder
  3. Enable Context Pack for NotebookLM in Community plugins
  4. Try it — pack the recipes/ folder, explore by tag, or build a MOC

Using with NotebookLM

  1. Run Context Pack on a folder or tag → a pack-xxx.md file is downloaded
  2. Open NotebookLMNew notebookAdd sourceUpload file → select the .md file
  3. Start asking questions

Sample queries — Recipes

Once you've packed your recipe notes and uploaded them to NotebookLM, try asking:

QuestionWhat 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.


License

MIT — made by dualyzeAI

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.