notebooklm

Query Google NotebookLM notebooks via Python browser automation scripts.

2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/bcastelino/agent-skills-kit --skill notebooklm-bcastelino
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: notebooklm
Source: https://github.com/bcastelino/agent-skills-kit/tree/main/skills/notebooklm
Command: npx skills add https://github.com/bcastelino/agent-skills-kit --skill notebooklm-bcastelino

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires patchright, python-dotenv, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill allows Claude Code to directly query your Google NotebookLM notebooks, providing source-grounded answers exclusively from your uploaded documents, drastically reducing hallucinations and eliminating manual copy-pasting.

Core Features & Use Cases

  • Direct NotebookLM Integration: Chat with your knowledge base without leaving Claude Code.
  • Source-Grounded Answers: Gemini synthesizes answers based only on your uploaded documents, with citations.
  • Automated Authentication & Library Management: Seamless Google login and easy saving/querying of notebooks.
  • Use Case: Ask Claude Code to "Query my API documentation notebook about authentication methods" and get precise, cited answers directly in your editor.

Quick Start

Use the notebooklm skill to ask your API documentation notebook about authentication methods.

Frequently Asked Questions about notebooklm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query my Google NotebookLM knowledge base directly from a code editor?

You can query your Google NotebookLM knowledge base from a code editor by running Python browser automation scripts. This approach uses Patchright to control the browser, handle Google authentication via persistent profiles, and retrieve synthesized, source-grounded answers from your uploaded documents.

Can I get source-grounded answers from my uploaded documentation without manual copy-pasting?

Yes, you can get source-grounded answers without manual copy-pasting by leveraging Gemini's synthesis capabilities within NotebookLM. The automation retrieves answers based exclusively on your uploaded documents and includes citations, drastically reducing hallucinations compared to general web queries.

How does browser automation handle Google authentication for NotebookLM?

Browser automation handles Google authentication for NotebookLM by utilizing persistent browser profiles and cookie injection. This mechanism maintains your login session across script executions, ensuring seamless access to your notebooks without requiring manual re-authentication during automated queries.

Do I need Patchright to automate interactions with NotebookLM using Python?

Yes, you need Patchright to automate interactions with NotebookLM using Python. Patchright is a required dependency for browser control, enabling the scripts to navigate the NotebookLM interface, manage library notebooks, and execute chat queries within the application environment.

What's the best way to use NotebookLM for reducing hallucinations when researching API documentation?

The best way to use NotebookLM for reducing hallucinations is to upload your API documentation as source documents and query them directly. Gemini synthesizes answers exclusively from these uploaded materials, providing cited responses that prevent ungrounded information from entering your research workflow.

Are there limitations when using browser automation to chat with NotebookLM?

Limitations when using browser automation to chat with NotebookLM include dependency on the browser interface and potential session management overhead. Because it relies on persistent profiles and cookie injection, changes to Google's authentication flow or NotebookLM's UI may require script updates.