/notebooklm:notebooklmfrom notebooklm
This skill should be used when the user mentions NotebookLM, says /notebooklm, or asks to create a podcast, generate an audio overview, make a quiz, summarize URLs, add sources to NotebookLM, generate flashcards, create a mind map, make an infographic, or download generated content. Covers full programmatic access to Google NotebookLM including features unavailable in the web UI.
Ships in notebooklm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Complete programmatic access to Google NotebookLM, including capabilities not exposed in the web UI. Create notebooks, add sources (URLs, YouTube, PDFs, audio, video, images), chat with content, generate artifact types, and download results in multiple formats.
From PyPI (Recommended):
pip install notebooklm-py
From GitHub (use latest release tag, NOT main branch):
# Get the latest release tag (using curl)
LATEST_TAG=$(curl -s https://api.github.com/repos/teng-lin/notebooklm-py/releases/latest | grep '"tag_name"' | cut -d'"' -f4)
pip install "git+https://github.com/teng-lin/notebooklm-py@${LATEST_TAG}"
⚠️ DO NOT install from main branch (pip install git+https://github.com/teng-lin/notebooklm-py). The main branch may contain unreleased/unstable changes. Always use PyPI or a specific release tag, unless you are testing unreleased features.
IMPORTANT: Before using any command, you MUST authenticate:
notebooklm login # Opens browser for Google OAuth
notebooklm list # Verify authentication works
If commands fail with authentication errors, re-run notebooklm login.
For automated environments, multiple accounts, or parallel agent workflows:
| Variable | Purpose |
|---|---|
NOTEBOOKLM_HOME | Custom config directory (default: ~/.notebooklm) |
NOTEBOOKLM_PROFILE | Active profile name (default: default) |
NOTEBOOKLM_AUTH_JSON | Inline auth JSON - no file writes needed |
CI/CD setup: Set NOTEBOOKLM_AUTH_JSON from a secret containing your storage_state.json contents.
Multiple accounts: Use named profiles (notebooklm profile create work, then notebooklm -p work login). Alternatively, use different NOTEBOOKLM_HOME directories per account.
Parallel agents: The CLI stores notebook context in a shared file (~/.notebooklm/context.json). Multiple concurrent agents using notebooklm use can overwrite each other's context.
Solutions for parallel workflows:
-n <notebook_id> (for wait/download commands) or --notebook <notebook_id> (for others) instead of relying on useexport NOTEBOOKLM_PROFILE=agent-$ID (each profile gets its own context file)NOTEBOOKLM_HOME per agent: export NOTEBOOKLM_HOME=/tmp/agent-$IDBefore starting workflows, verify the CLI is ready:
notebooklm status → Should show "Authenticated as: email@..."notebooklm list --json → Should return valid JSON (even if empty notebooks list)notebooklm loginThe wait rule (resolves the only ambiguous case): A wait command
(artifact wait, source wait, research wait) is fine to run without
confirmation when it runs in a background agent/job that polls an
already-started task. It needs confirmation when run inline in the main
conversation, because it blocks the conversation for the full generation
window. Default to delegating waits to a background worker; only block inline if
the user explicitly asked for a blocking workflow.
Run automatically (no confirmation):
notebooklm status / auth check / doctor - diagnosticsnotebooklm list / source list / artifact list / history - read-only listingsnotebooklm language list / language get / language set - language confignotebooklm research status - check research statusnotebooklm artifact wait / source wait / research wait - only in a background/automation context (see the wait rule above)notebooklm use <id> - set context (⚠️ SINGLE-AGENT ONLY - use -n flag in parallel workflows)notebooklm create - create notebooknotebooklm source add - add sourcesnotebooklm ask "..." - chat queries (without --save-as-note)notebooklm profile list / profile create / profile switch - profile managementAsk before running:
notebooklm delete - destructivenotebooklm generate * - long-running, may failnotebooklm download * - writes to filesystemnotebooklm artifact wait / source wait / research wait - only when run inline in the main conversation (see the wait rule above)notebooklm ask "..." --save-as-note - writes a notenotebooklm history --save - writes a noteFor a complete command reference, see references/quick-reference.md. Detailed
tables (generation types and options, language codes, JSON schemas, exit codes)
and step-by-step workflows live in references/reference.md.
Day-to-day commands (full table in references/quick-reference.md):
create "Title", list, use <id> (single-agent), notebook delete <id>source add <url|file>, source list, source wait <id>, source fulltext <id>, source add-research "query" [--mode deep]ask "question" (add --json for citations, --save-as-note to persist)generate <audio|video|slide-deck|infographic|report|mind-map|data-table|quiz|flashcards> [...] — returns a task_idartifact list, artifact wait <id>, download <type> <path>research status, research wait --import-alllanguage set <code>, profile create/switch, doctor--json is available on most commands for machine-readable output. Generation,
download, exit codes, JSON schemas, language codes, processing times, and
step-by-step workflows are documented in references/reference.md.
Progress updates: Brief status for each step
Fire-and-forget for long operations:
artifact waitJSON output: Most commands accept --json for machine-readable output
(list, auth check, source list, artifact list, generate, ask, ...).
Field-level schemas and status-value meanings are in references/reference.md.
On failure, offer the user a choice:
Error decision tree:
| Error | Cause | Action |
|---|---|---|
| Auth/cookie error | Session expired | Run notebooklm auth check then notebooklm login |
| "No notebook context" | Context not set | Use -n <id> or --notebook <id> flag (parallel), or notebooklm use <id> (single-agent) |
| "No result found for RPC ID" | Rate limiting | Wait 5-10 min, retry |
GENERATION_FAILED | Google rate limit | Wait and retry later |
| Download fails | Generation incomplete | Check artifact list for status |
| Invalid notebook/source ID | Wrong ID | Run notebooklm list to verify |
| RPC protocol error | Google changed APIs | May need CLI update |
Exit codes: 0 success, 1 error (not found / processing failed), 2
timeout (wait commands only). Full breakdown in references/reference.md.
Rate limiting: Audio, video, quiz, flashcards, infographic, and slide deck generation may fail due to Google's rate limits. This is an API limitation, not a bug.
Reliable operations: These always work:
Unreliable operations: These may fail with rate limiting:
Workaround: If generation fails:
notebooklm artifact listProcessing times vary significantly (source processing 30s–10min, deep
research 15–30+min, audio 10–20min, video 15–45min). Use background execution
for long operations and poll every 15–30s when checking status manually. Full
timing/timeout table is in references/reference.md.
Language is a GLOBAL account setting (notebooklm language set <code>,
e.g. ja, zh_Hans), overridable per generate command with --language. Code
list and offline --local usage are in references/reference.md.
notebooklm --help # Main commands
notebooklm auth check # Diagnose auth issues
notebooklm auth check --test # Full auth validation with network test
notebooklm notebook --help # Notebook management
notebooklm source --help # Source management
notebooklm research --help # Research status/wait
notebooklm generate --help # Content generation
notebooklm artifact --help # Artifact management
notebooklm download --help # Download content
notebooklm language --help # Language settings
Diagnose auth: notebooklm auth check - shows cookie domains, storage path, validation status
Re-authenticate: notebooklm login
Check version: notebooklm --version
Update an outdated CLI: reinstall the latest release per the Installation
section above (pip install -U notebooklm-py). If the CLI provides a
notebooklm skill install subcommand for refreshing its bundled skill files,
run that after upgrading; otherwise the pip upgrade is sufficient.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dinglebear-ai/dendrite --plugin notebooklm