NotebookLM Integration
Query Google NotebookLM notebooks directly from the command line. Send questions and receive AI-synthesized responses based on your uploaded sources.
Quick Start
# List available NotebookLM tabs gobbler notebooklm list # Send a query and get response gobbler notebooklm query "What are the main themes in these documents?" # Get the last response gobbler notebooklm last # View chat history gobbler notebooklm history --count 10
Prerequisites
NotebookLM integration requires:
- •Relay server running - bridges CLI to browser
- •Gobbler browser extension - installed and connected
- •NotebookLM tab in "Gobbler" group - notebook must be open and grouped
Setup
# 1. Start the relay server gobbler relay start # 2. Verify connection gobbler relay status
Browser Setup:
- •Open NotebookLM in your browser (notebooklm.google.com)
- •Open a notebook with your sources
- •Create a tab group named "Gobbler"
- •Move the NotebookLM tab into that group
- •Verify with
gobbler notebooklm list
Commands Reference
gobbler notebooklm list
List NotebookLM tabs in the Gobbler group.
gobbler notebooklm list
gobbler notebooklm info
Get notebook metadata (sources, messages, URL).
# Default (first NotebookLM tab) gobbler notebooklm info # Specific tab gobbler notebooklm info --tab 12345
gobbler notebooklm query
Send a question and wait for the AI response.
# Basic query gobbler notebooklm query "Summarize the key findings" # Specific notebook (by tab ID) gobbler notebooklm query "What does the author say about X?" --tab 12345 # Extended timeout for complex queries gobbler notebooklm query "Create a comprehensive outline" --timeout 120
gobbler notebooklm last
Retrieve the last response (useful after long queries).
gobbler notebooklm last # From specific tab gobbler notebooklm last --tab 12345
gobbler notebooklm history
Get recent chat messages.
# Last 5 messages (default) gobbler notebooklm history # Last 10 messages gobbler notebooklm history --count 10 # All messages gobbler notebooklm history --all # From specific tab gobbler notebooklm history --tab 12345 --count 20
Use Cases
Research Assistant
Query your uploaded papers, documents, or notes:
# Synthesize across sources gobbler notebooklm query "What are the common themes across all documents?" # Extract specific information gobbler notebooklm query "What methodology did the authors use?" # Generate summaries gobbler notebooklm query "Create a one-paragraph summary of each source"
Book Notes
For notebooks with book excerpts or full texts:
# Character analysis gobbler notebooklm query "Describe the protagonist's character arc" # Theme exploration gobbler notebooklm query "What are the main themes and how do they develop?" # Quote finding gobbler notebooklm query "Find quotes about [topic]"
Meeting Notes
For notebooks with meeting transcripts or notes:
# Action items gobbler notebooklm query "List all action items and who is responsible" # Decision summary gobbler notebooklm query "What decisions were made in these meetings?" # Topic extraction gobbler notebooklm query "What topics were discussed most frequently?"
Workflow Example
Querying research sources:
# 1. Ensure relay is running gobbler relay start # 2. In your browser: # - Open NotebookLM and your notebook # - Add sources (PDFs, docs, websites) # - Move tab to "Gobbler" group # 3. Verify connection gobbler notebooklm list # 4. Query your sources gobbler notebooklm query "What are the three most important insights from these sources?" # 5. Save the response gobbler notebooklm last > insights.md
Timeouts
Complex queries may take longer. Default timeout is 60 seconds.
# For comprehensive analysis gobbler notebooklm query "Create a detailed outline" --timeout 120 # For quick lookups gobbler notebooklm query "When was X published?" --timeout 30
Multiple Notebooks
If you have multiple NotebookLM tabs open:
# List all notebooks gobbler notebooklm list # Query specific notebook by tab ID gobbler notebooklm query "Your question" --tab 12345
Without --tab, commands default to the first NotebookLM tab found.
Troubleshooting
"Relay server is not running"
gobbler relay start gobbler relay status
"No browser extension connected"
- •Check Gobbler extension is installed
- •Refresh the extension (disable/re-enable)
- •Restart relay:
gobbler relay restart
"No NotebookLM tabs found in Gobbler group"
- •Open NotebookLM in your browser
- •Right-click the tab -> "Add to group" -> "New group"
- •Name the group "Gobbler"
- •Verify:
gobbler notebooklm list
"Could not find NotebookLM input textarea"
The NotebookLM UI may have changed, or the page hasn't fully loaded:
- •Ensure the notebook is fully loaded
- •Make sure you're on a notebook page (not the home page)
- •Try refreshing the NotebookLM tab
"Timeout waiting for response"
NotebookLM is taking too long:
# Increase timeout gobbler notebooklm query "Your question" --timeout 120
Or check:
- •Is NotebookLM actually processing? (look at the browser tab)
- •Network issues?
- •Try a simpler query first
Response is partial or cut off
The response may still be streaming:
# Wait and get the full response sleep 10 gobbler notebooklm last