🛠️ Notebooklm
Google NotebookLMの全機能をAPI経由で利用し、Web UIにはない機能も含めてノートブックの作成、ソースの追加、あらゆる成果物の生成、複数形式でのダウンロードを可能にするSkill。
📜 元の英語説明(参考)
Complete API for Google NotebookLM - full programmatic access including features not in the web UI. Create notebooks, add sources, generate all artifact types, download in multiple formats. Activates on explicit /notebooklm or intent like "create a podcast about X"
🇯🇵 日本人クリエイター向け解説
Google NotebookLMの全機能をAPI経由で利用し、Web UIにはない機能も含めてノートブックの作成、ソースの追加、あらゆる成果物の生成、複数形式でのダウンロードを可能にするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o notebooklm.zip https://jpskill.com/download/5113.zip && unzip -o notebooklm.zip && rm notebooklm.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5113.zip -OutFile "$d\notebooklm.zip"; Expand-Archive "$d\notebooklm.zip" -DestinationPath $d -Force; ri "$d\notebooklm.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
notebooklm.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
notebooklmフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Notebooklm を使って、最小構成のサンプルコードを示して
- › Notebooklm の主な使い方と注意点を教えて
- › Notebooklm を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
<!-- notebooklm-py v0.3.2 -->
NotebookLM 自動化
Google NotebookLM への完全なプログラムによるアクセスを提供します。これには、ウェブ UI では公開されていない機能も含まれます。ノートブックの作成、ソース(URL、YouTube、PDF、オーディオ、ビデオ、画像)の追加、コンテンツとのチャット、あらゆる種類の成果物の生成、および複数の形式での結果のダウンロードが可能です。
インストール
PyPI から(推奨):
pip install notebooklm-py
GitHub から(最新のリリース版タグを使用してください。main ブランチは使用しないでください):
# 最新のリリース版タグを取得します (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}"
⚠️ main ブランチからインストールしないでください (pip install git+https://github.com/teng-lin/notebooklm-py)。main ブランチには、未リリースまたは不安定な変更が含まれている可能性があります。未リリース機能をテストする場合を除き、常に PyPI または特定のリリース版タグを使用してください。
インストール後、Claude Code スキルをインストールしてください:
notebooklm skill install
前提条件
重要: いずれかのコマンドを使用する前に、必ず認証を行う必要があります。
notebooklm login # Google OAuth のためにブラウザを開きます
notebooklm list # 認証が機能することを確認します
コマンドが認証エラーで失敗した場合は、notebooklm login を再実行してください。
CI/CD、複数のアカウント、および並列エージェント
自動化された環境、複数のアカウント、または並列エージェントのワークフローの場合:
| 変数 | 目的 |
|---|---|
NOTEBOOKLM_HOME |
カスタム設定ディレクトリ (デフォルト: ~/.notebooklm) |
NOTEBOOKLM_AUTH_JSON |
インライン認証 JSON - ファイル書き込みは不要 |
CI/CD の設定: storage_state.json の内容を含むシークレットから NOTEBOOKLM_AUTH_JSON を設定してください。
複数のアカウント: アカウントごとに異なる NOTEBOOKLM_HOME ディレクトリを使用してください。
並列エージェント: CLI はノートブックのコンテキストを共有ファイル (~/.notebooklm/context.json) に保存します。notebooklm use を使用する複数の同時エージェントは、互いのコンテキストを上書きする可能性があります。
並列ワークフローの解決策:
- 常に明示的なノートブック ID を使用する(推奨):
useに依存する代わりに、-n <notebook_id>(wait/downloadコマンドの場合)または--notebook <notebook_id>(その他の場合)を渡してください。 - エージェントごとの分離: エージェントごとに一意の
NOTEBOOKLM_HOMEを設定してください:export NOTEBOOKLM_HOME=/tmp/agent-$ID - 完全な UUID を使用する: 自動化で部分的な ID を避けてください(曖昧になる可能性があります)。
エージェント設定の検証
ワークフローを開始する前に、CLI が準備できていることを確認してください:
notebooklm status→ 「Authenticated as: email@...」と表示されるはずです。notebooklm list --json→ 有効な JSON が返されるはずです(空のノートブックリストであっても)。- どちらかが失敗した場合 →
notebooklm loginを実行してください。
このスキルがアクティブになるタイミング
明示的: ユーザーが「/notebooklm」、「use notebooklm」と言うか、ツール名を言及した場合。
意図検出: 次のようなリクエストを認識します:
- 「[トピック]に関するポッドキャストを作成して」
- 「これらの URL/ドキュメントを要約して」
- 「私の研究からクイズを作成して」
- 「これを音声の概要にして」
- 「勉強用のフラッシュカードを作成して」
- 「ビデオ解説を作成して」
- 「インフォグラフィックを作成して」
- 「概念のマインドマップを作成して」
- 「クイズを Markdown でダウンロードして」
- 「これらのソースを NotebookLM に追加して」
自律性ルール
自動的に実行(確認なし):
notebooklm status- コンテキストの確認notebooklm auth check- 認証の問題を診断notebooklm list- ノートブックのリスト表示notebooklm source list- ソースのリスト表示notebooklm artifact list- 成果物のリスト表示notebooklm language list- サポートされている言語のリスト表示notebooklm language get- 現在の言語の取得notebooklm language set- 言語の設定(グローバル設定)notebooklm artifact wait- 成果物の完了を待機(サブエージェントのコンテキスト内)notebooklm source wait- ソース処理の待機(サブエージェントのコンテキスト内)notebooklm research status- リサーチ状況の確認notebooklm research wait- リサーチの待機(サブエージェントのコンテキスト内)notebooklm use <id>- コンテキストの設定(⚠️ シングルエージェントのみ - 並列ワークフローでは-nフラグを使用してください)notebooklm create- ノートブックの作成notebooklm ask "..."- チャットクエリnotebooklm source add- ソースの追加
実行前に確認を求める:
notebooklm delete- 破壊的notebooklm generate *- 長時間実行、失敗する可能性ありnotebooklm download *- ファイルシステムへの書き込みnotebooklm artifact wait- 長時間実行(メインの会話の場合)notebooklm source wait- 長時間実行(メインの会話の場合)notebooklm research wait- 長時間実行(メインの会話の場合)
クイックリファレンス
| タスク | コマンド |
|---|---|
| 認証 | notebooklm login |
| 認証の問題を診断 | notebooklm auth check |
| 認証を診断 (完全) | notebooklm auth check --test |
| ノートブックをリスト表示 | notebooklm list |
| ノートブックを作成 | notebooklm create "Title" |
| コンテキストを設定 | notebooklm use <notebook_id> |
| コンテキストを表示 | notebooklm status |
| URL ソースを追加 | notebooklm source add "https://..." |
| ファイルを追加 | notebooklm source add ./file.pdf |
| YouTube を追加 | notebooklm source add "https://youtube.com/..." |
| ソースをリスト表示 | notebooklm source list |
| ソース処理を待機 | notebooklm source wait <source_id> |
| ウェブリサーチ (高速) | notebooklm source add-research "query" |
| ウェブリサーチ (詳細) | notebooklm source add-research "query" --mode deep --no-wait |
| リサーチ状況を確認 | notebooklm research status |
| リサーチを待機 | notebooklm research wait --import-all |
| チャット | notebooklm ask "question" |
| チャット (新しい会話) | notebooklm ask "question" --new |
| チャット (特定のソース) | notebooklm ask "question" -s src_id1 -s src_id2 |
| チャット (参照付き) | notebooklm ask "question" --json |
| ソースの全文を取得 | notebooklm source fulltext <source_id> |
| ソースガイドを取得 | notebooklm source guide <source_id> |
| ポッドキャストを生成 | notebooklm generate audio "instructions" |
| ポッドキャストを生成 (JSON) | notebooklm generate aud |
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
<!-- notebooklm-py v0.3.2 -->
NotebookLM Automation
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 all artifact types, and download results in multiple formats.
Installation
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.
After installation, install the Claude Code skill:
notebooklm skill install
Prerequisites
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.
CI/CD, Multiple Accounts, and Parallel Agents
For automated environments, multiple accounts, or parallel agent workflows:
| Variable | Purpose |
|---|---|
NOTEBOOKLM_HOME |
Custom config directory (default: ~/.notebooklm) |
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 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:
- Always use explicit notebook ID (recommended): Pass
-n <notebook_id>(forwait/downloadcommands) or--notebook <notebook_id>(for others) instead of relying onuse - Per-agent isolation: Set unique
NOTEBOOKLM_HOMEper agent:export NOTEBOOKLM_HOME=/tmp/agent-$ID - Use full UUIDs: Avoid partial IDs in automation (they can become ambiguous)
Agent Setup Verification
Before 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)- If either fails → Run
notebooklm login
When This Skill Activates
Explicit: User says "/notebooklm", "use notebooklm", or mentions the tool by name
Intent detection: Recognize requests like:
- "Create a podcast about [topic]"
- "Summarize these URLs/documents"
- "Generate a quiz from my research"
- "Turn this into an audio overview"
- "Create flashcards for studying"
- "Generate a video explainer"
- "Make an infographic"
- "Create a mind map of the concepts"
- "Download the quiz as markdown"
- "Add these sources to NotebookLM"
Autonomy Rules
Run automatically (no confirmation):
notebooklm status- check contextnotebooklm auth check- diagnose auth issuesnotebooklm list- list notebooksnotebooklm source list- list sourcesnotebooklm artifact list- list artifactsnotebooklm language list- list supported languagesnotebooklm language get- get current languagenotebooklm language set- set language (global setting)notebooklm artifact wait- wait for artifact completion (in subagent context)notebooklm source wait- wait for source processing (in subagent context)notebooklm research status- check research statusnotebooklm research wait- wait for research (in subagent context)notebooklm use <id>- set context (⚠️ SINGLE-AGENT ONLY - use-nflag in parallel workflows)notebooklm create- create notebooknotebooklm ask "..."- chat queriesnotebooklm source add- add sources
Ask before running:
notebooklm delete- destructivenotebooklm generate *- long-running, may failnotebooklm download *- writes to filesystemnotebooklm artifact wait- long-running (when in main conversation)notebooklm source wait- long-running (when in main conversation)notebooklm research wait- long-running (when in main conversation)
Quick Reference
| Task | Command |
|---|---|
| Authenticate | notebooklm login |
| Diagnose auth issues | notebooklm auth check |
| Diagnose auth (full) | notebooklm auth check --test |
| List notebooks | notebooklm list |
| Create notebook | notebooklm create "Title" |
| Set context | notebooklm use <notebook_id> |
| Show context | notebooklm status |
| Add URL source | notebooklm source add "https://..." |
| Add file | notebooklm source add ./file.pdf |
| Add YouTube | notebooklm source add "https://youtube.com/..." |
| List sources | notebooklm source list |
| Wait for source processing | notebooklm source wait <source_id> |
| Web research (fast) | notebooklm source add-research "query" |
| Web research (deep) | notebooklm source add-research "query" --mode deep --no-wait |
| Check research status | notebooklm research status |
| Wait for research | notebooklm research wait --import-all |
| Chat | notebooklm ask "question" |
| Chat (new conversation) | notebooklm ask "question" --new |
| Chat (specific sources) | notebooklm ask "question" -s src_id1 -s src_id2 |
| Chat (with references) | notebooklm ask "question" --json |
| Get source fulltext | notebooklm source fulltext <source_id> |
| Get source guide | notebooklm source guide <source_id> |
| Generate podcast | notebooklm generate audio "instructions" |
| Generate podcast (JSON) | notebooklm generate audio --json |
| Generate podcast (specific sources) | notebooklm generate audio -s src_id1 -s src_id2 |
| Generate video | notebooklm generate video "instructions" |
| Generate quiz | notebooklm generate quiz |
| Check artifact status | notebooklm artifact list |
| Wait for completion | notebooklm artifact wait <artifact_id> |
| Download audio | notebooklm download audio ./output.mp3 |
| Download video | notebooklm download video ./output.mp4 |
| Download report | notebooklm download report ./report.md |
| Download mind map | notebooklm download mind-map ./map.json |
| Download data table | notebooklm download data-table ./data.csv |
| Download quiz | notebooklm download quiz quiz.json |
| Download quiz (markdown) | notebooklm download quiz --format markdown quiz.md |
| Download flashcards | notebooklm download flashcards cards.json |
| Download flashcards (markdown) | notebooklm download flashcards --format markdown cards.md |
| Delete notebook | notebooklm notebook delete <id> |
| List languages | notebooklm language list |
| Get language | notebooklm language get |
| Set language | notebooklm language set zh_Hans |
Parallel safety: Use explicit notebook IDs in parallel workflows. Commands supporting -n shorthand: artifact wait, source wait, research wait/status, download *. Download commands also support -a/--artifact. Other commands use --notebook. For chat, use --new to start fresh conversations (avoids conversation ID conflicts).
Partial IDs: Use first 6+ characters of UUIDs. Must be unique prefix (fails if ambiguous). Works for: use, delete, wait commands. For automation, prefer full UUIDs to avoid ambiguity.
Command Output Formats
Commands with --json return structured data for parsing:
Create notebook:
$ notebooklm create "Research" --json
{"id": "abc123de-...", "title": "Research"}
Add source:
$ notebooklm source add "https://example.com" --json
{"source_id": "def456...", "title": "Example", "status": "processing"}
Generate artifact:
$ notebooklm generate audio "Focus on key points" --json
{"task_id": "xyz789...", "status": "pending"}
Chat with references:
$ notebooklm ask "What is X?" --json
{"answer": "X is... [1] [2]", "conversation_id": "...", "turn_number": 1, "is_follow_up": false, "references": [{"source_id": "abc123...", "citation_number": 1, "cited_text": "Relevant passage from source..."}, {"source_id": "def456...", "citation_number": 2, "cited_text": "Another passage..."}]}
Source fulltext (get indexed content):
$ notebooklm source fulltext <source_id> --json
{"source_id": "...", "title": "...", "char_count": 12345, "content": "Full indexed text..."}
Understanding citations: The cited_text in references is often a snippet or section header, not the full quoted passage. The start_char/end_char positions reference NotebookLM's internal chunked index, not the raw fulltext. Use SourceFulltext.find_citation_context() to locate citations:
fulltext = await client.sources.get_fulltext(notebook_id, ref.source_id)
matches = fulltext.find_citation_context(ref.cited_text) # Returns list[(context, position)]
if matches:
context, pos = matches[0] # First match; check len(matches) > 1 for duplicates
Extract IDs: Parse the id, source_id, or task_id field from JSON output.
Generation Types
All generate commands support:
-s, --sourceto use specific source(s) instead of all sources--languageto set output language (defaults to configured language or 'en')--jsonfor machine-readable output (returnstask_idandstatus)--retry Nto automatically retry on rate limits with exponential backoff
| Type | Command | Options | Download |
|---|---|---|---|
| Podcast | generate audio |
--format [deep-dive\|brief\|critique\|debate], --length [short\|default\|long] |
.mp3 |
| Video | generate video |
--format [explainer\|brief], --style [auto\|classic\|whiteboard\|kawaii\|anime\|watercolor\|retro-print\|heritage\|paper-craft] |
.mp4 |
| Slide Deck | generate slide-deck |
--format [detailed\|presenter], --length [default\|short] |
|
| Infographic | generate infographic |
--orientation [landscape\|portrait\|square], --detail [concise\|standard\|detailed] |
.png |
| Report | generate report |
--format [briefing-doc\|study-guide\|blog-post\|custom] |
.md |
| Mind Map | generate mind-map |
(sync, instant) | .json |
| Data Table | generate data-table |
description required | .csv |
| Quiz | generate quiz |
--difficulty [easy\|medium\|hard], --quantity [fewer\|standard\|more] |
.json/.md/.html |
| Flashcards | generate flashcards |
--difficulty [easy\|medium\|hard], --quantity [fewer\|standard\|more] |
.json/.md/.html |
Features Beyond the Web UI
These capabilities are available via CLI but not in NotebookLM's web interface:
| Feature | Command | Description |
|---|---|---|
| Batch downloads | download <type> --all |
Download all artifacts of a type at once |
| Quiz/Flashcard export | download quiz --format json |
Export as JSON, Markdown, or HTML (web UI only shows interactive view) |
| Mind map extraction | download mind-map |
Export hierarchical JSON for visualization tools |
| Data table export | download data-table |
Download structured tables as CSV |
| Source fulltext | source fulltext <id> |
Retrieve the indexed text content of any source |
| Programmatic sharing | share commands |
Manage sharing permissions without the UI |
Common Workflows
Research to Podcast (Interactive)
Time: 5-10 minutes total
notebooklm create "Research: [topic]"— if fails: check auth withnotebooklm loginnotebooklm source addfor each URL/document — if one fails: log warning, continue with others- Wait for sources:
notebooklm source list --jsonuntil all status=READY — required before generation notebooklm generate audio "Focus on [specific angle]"(confirm when asked) — if rate limited: wait 5 min, retry once- Note the artifact ID returned
- Check
notebooklm artifact listlater for status notebooklm download audio ./podcast.mp3when complete (confirm when asked)
Research to Podcast (Automated with Subagent)
Time: 5-10 minutes, but continues in background
When user wants full automation (generate and download when ready):
- Create notebook and add sources as usual
- Wait for sources to be ready (use
source waitor checksource list --json) - Run
notebooklm generate audio "..." --json→ parseartifact_idfrom output - Spawn a background agent using Task tool:
Task( prompt="Wait for artifact {artifact_id} in notebook {notebook_id} to complete, then download. Use: notebooklm artifact wait {artifact_id} -n {notebook_id} --timeout 600 Then: notebooklm download audio ./podcast.mp3 -a {artifact_id} -n {notebook_id}", subagent_type="general-purpose" ) - Main conversation continues while agent waits
Error handling in subagent:
- If
artifact waitreturns exit code 2 (timeout): Report timeout, suggest checkingartifact list - If download fails: Check if artifact status is COMPLETED first
Benefits: Non-blocking, user can do other work, automatic download on completion
Document Analysis
Time: 1-2 minutes
notebooklm create "Analysis: [project]"notebooklm source add ./doc.pdf(or URLs)notebooklm ask "Summarize the key points"notebooklm ask "What are the main arguments?"- Continue chatting as needed
Bulk Import
Time: Varies by source count
notebooklm create "Collection: [name]"- Add multiple sources:
notebooklm source add "https://url1.com" notebooklm source add "https://url2.com" notebooklm source add ./local-file.pdf notebooklm source listto verify
Source limits: Max 50 sources per notebook Supported types: PDFs, YouTube URLs, web URLs, Google Docs, text files, Markdown, Word docs, audio files, video files, images
Bulk Import with Source Waiting (Subagent Pattern)
Time: Varies by source count
When adding multiple sources and needing to wait for processing before chat/generation:
- Add sources with
--jsonto capture IDs:notebooklm source add "https://url1.com" --json # → {"source_id": "abc..."} notebooklm source add "https://url2.com" --json # → {"source_id": "def..."} - Spawn a background agent to wait for all sources:
Task( prompt="Wait for sources {source_ids} in notebook {notebook_id} to be ready. For each: notebooklm source wait {id} -n {notebook_id} --timeout 120 Report when all ready or if any fail.", subagent_type="general-purpose" ) - Main conversation continues while agent waits
- Once sources are ready, proceed with chat or generation
Why wait for sources? Sources must be indexed before chat or generation. Takes 10-60 seconds per source.
Deep Web Research (Subagent Pattern)
Time: 2-5 minutes, runs in background
Deep research finds and analyzes web sources on a topic:
- Create notebook:
notebooklm create "Research: [topic]" - Start deep research (non-blocking):
notebooklm source add-research "topic query" --mode deep --no-wait - Spawn a background agent to wait and import:
Task( prompt="Wait for research in notebook {notebook_id} to complete and import sources. Use: notebooklm research wait -n {notebook_id} --import-all --timeout 300 Report how many sources were imported.", subagent_type="general-purpose" ) - Main conversation continues while agent waits
- When agent completes, sources are imported automatically
Alternative (blocking): For simple cases, omit --no-wait:
notebooklm source add-research "topic" --mode deep --import-all
# Blocks for up to 5 minutes
When to use each mode:
--mode fast: Specific topic, quick overview needed (5-10 sources, seconds)--mode deep: Broad topic, comprehensive analysis needed (20+ sources, 2-5 min)
Research sources:
--from web: Search the web (default)--from drive: Search Google Drive
Output Style
Progress updates: Brief status for each step
- "Creating notebook 'Research: AI'..."
- "Adding source: https://example.com..."
- "Starting audio generation... (task ID: abc123)"
Fire-and-forget for long operations:
- Start generation, return artifact ID immediately
- Do NOT poll or wait in main conversation - generation takes 5-45 minutes (see timing table)
- User checks status manually, OR use subagent with
artifact wait
JSON output: Use --json flag for machine-readable output:
notebooklm list --json
notebooklm auth check --json
notebooklm source list --json
notebooklm artifact list --json
JSON schemas (key fields):
notebooklm list --json:
{"notebooks": [{"id": "...", "title": "...", "created_at": "..."}]}
notebooklm auth check --json:
{"checks": {"storage_exists": true, "json_valid": true, "cookies_present": true, "sid_cookie": true, "token_fetch": true}, "details": {"storage_path": "...", "auth_source": "file", "cookies_found": ["SID", "HSID", "..."], "cookie_domains": [".google.com"]}}
notebooklm source list --json:
{"sources": [{"id": "...", "title": "...", "status": "ready|processing|error"}]}
notebooklm artifact list --json:
{"artifacts": [{"id": "...", "title": "...", "type": "Audio Overview", "status": "in_progress|pending|completed|unknown"}]}
Status values:
- Sources:
processing→ready(orerror) - Artifacts:
pendingorin_progress→completed(orunknown)
Error Handling
On failure, offer the user a choice:
- Retry the operation
- Skip and continue with something else
- Investigate the error
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
All commands use consistent exit codes:
| Code | Meaning | Action |
|---|---|---|
| 0 | Success | Continue |
| 1 | Error (not found, processing failed) | Check stderr, see Error Handling |
| 2 | Timeout (wait commands only) | Extend timeout or check status manually |
Examples:
source waitreturns 1 if source not found or processing failedartifact waitreturns 2 if timeout reached before completiongeneratereturns 1 if rate limited (check stderr for details)
Known Limitations
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:
- Notebooks (list, create, delete, rename)
- Sources (add, list, delete)
- Chat/queries
- Mind-map, study-guide, report, data-table generation
Unreliable operations: These may fail with rate limiting:
- Audio (podcast) generation
- Video generation
- Quiz and flashcard generation
- Infographic and slide deck generation
Workaround: If generation fails:
- Check status:
notebooklm artifact list - Retry after 5-10 minutes
- Use the NotebookLM web UI as fallback
Processing times vary significantly. Use the subagent pattern for long operations:
| Operation | Typical time | Suggested timeout |
|---|---|---|
| Source processing | 30s - 10 min | 600s |
| Research (fast) | 30s - 2 min | 180s |
| Research (deep) | 15 - 30+ min | 1800s |
| Notes | instant | n/a |
| Mind-map | instant (sync) | n/a |
| Quiz, flashcards | 5 - 15 min | 900s |
| Report, data-table | 5 - 15 min | 900s |
| Audio generation | 10 - 20 min | 1200s |
| Video generation | 15 - 45 min | 2700s |
Polling intervals: When checking status manually, poll every 15-30 seconds to avoid excessive API calls.
Language Configuration
Language setting controls the output language for generated artifacts (audio, video, etc.).
Important: Language is a GLOBAL setting that affects all notebooks in your account.
# List all 80+ supported languages with native names
notebooklm language list
# Show current language setting
notebooklm language get
# Set language for artifact generation
notebooklm language set zh_Hans # Simplified Chinese
notebooklm language set ja # Japanese
notebooklm language set en # English (default)
Common language codes:
| Code | Language |
|------|----------|
| en | English |
| zh_Hans | 中文(简体) - Simplified Chinese |
| zh_Hant | 中文(繁體) - Traditional Chinese |
| ja | 日本語 - Japanese |
| ko | 한국어 - Korean |
| es | Español - Spanish |
| fr | Français - French |
| de | Deutsch - German |
| pt_BR | Português (Brasil) |
Override per command: Use --language flag on generate commands:
notebooklm generate audio --language ja # Japanese podcast
notebooklm generate video --language zh_Hans # Chinese video
Offline mode: Use --local flag to skip server sync:
notebooklm language set zh_Hans --local # Save locally only
notebooklm language get --local # Read local config only
Troubleshooting
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 skill: notebooklm skill install