@cli4ai/notebooklm
v1.0.1
Published
NotebookLM CLI - create projects, upload documents, ask questions, generate media
Maintainers
Readme
NotebookLM CLI
CLI tool for Google NotebookLM - create projects, upload documents, ask questions, and generate media.
Installation
cli4ai add notebooklmPrerequisites
- Chrome browser with the
cli4ai/chromepackage - Logged into Google NotebookLM in the managed Chrome browser
# Start the managed Chrome browser
cli4ai run chrome launch
# Navigate to NotebookLM and log in
cli4ai run chrome navigate https://notebooklm.google.comCommands
List Notebooks
cli4ai run notebooklm listCreate Notebook
cli4ai run notebooklm create "My Research Project"Open Notebook
cli4ai run notebooklm open <notebook-id>Add Sources
# Add URL source
cli4ai run notebooklm add-url <notebook-id> "https://example.com/article"
# Add text source
cli4ai run notebooklm add-text <notebook-id> "Your content here..."List Sources
cli4ai run notebooklm sources <notebook-id>Ask Questions
cli4ai run notebooklm ask <notebook-id> "What are the key points?"Generate Media
# Generate audio overview (AI podcast)
cli4ai run notebooklm generate <notebook-id> audio
# Generate with custom prompt
cli4ai run notebooklm generate <notebook-id> audio --prompt "Focus on key insights"
# Other media types
cli4ai run notebooklm generate <notebook-id> video
cli4ai run notebooklm generate <notebook-id> slides
cli4ai run notebooklm generate <notebook-id> quiz
cli4ai run notebooklm generate <notebook-id> flashcards
cli4ai run notebooklm generate <notebook-id> mindmap
cli4ai run notebooklm generate <notebook-id> infographic
cli4ai run notebooklm generate <notebook-id> report
cli4ai run notebooklm generate <notebook-id> tableCheck Status
cli4ai run notebooklm status <notebook-id>Download Generated Content
cli4ai run notebooklm download <notebook-id> audioList Media Types
cli4ai run notebooklm typesMedia Types
| Type | Description |
|------|-------------|
| audio | AI-generated podcast discussion |
| video | Video overview presentation |
| slides | Slide deck |
| quiz | Knowledge quiz |
| flashcards | Study flashcards |
| mindmap | Visual mind map |
| infographic | Visual data summary |
| report | Detailed written report |
| table | Structured data table |
Example Workflow
# Create a new notebook
cli4ai run notebooklm create "AI Research"
# Returns: { id: "abc-123", name: "AI Research", url: "..." }
# Add sources
cli4ai run notebooklm add-url abc-123 "https://en.wikipedia.org/wiki/Artificial_intelligence"
cli4ai run notebooklm add-text abc-123 "Additional context about AI..."
# Ask questions
cli4ai run notebooklm ask abc-123 "What is artificial intelligence?"
# Generate an audio overview
cli4ai run notebooklm generate abc-123 audio --prompt "Make it engaging and educational"
# Check status
cli4ai run notebooklm status abc-123
# Download when ready
cli4ai run notebooklm download abc-123 audioNotes
- NotebookLM has no public API - this tool uses browser automation
- User must be logged into Google in the managed Chrome browser
- Audio/video generation can take several minutes
- File upload is not supported (use URLs or paste text instead)
License
BUSL-1.1
