Notebooklm 标志

Notebooklm

社区
bacnh85
notebooklm

通过 notebooklm-py CLI bridge(v0.7.3)使用 Google NotebookLM:笔记本、来源、基于来源的聊天、研究和 Studio 工件(音频概览、视频、幻灯片、报告、测验等)。

概览

发布者bacnh85
代码仓库pi-extensions
技能名称notebooklm
星标数
42
复刻数
15
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 bacnh85 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Notebooklm AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bacnh85/pi-extensions/tree/main/pi-notebooklm/skills/notebooklm
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bacnh85/pi-extensions.git /tmp/pi-extensions
mkdir -p .claude/skills
cp -r /tmp/pi-extensions/pi-notebooklm/skills/notebooklm .claude/skills/notebooklm
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Notebooklm,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Notebooklm。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Notebooklm 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

NotebookLM Skill

Provides agent access to Google's NotebookLM through the notebooklm tool.

Prerequisites

  1. Install the upstream CLI:

    bash
    uv tool install "notebooklm-py[browser]"

    See notebooklm-py docs for pipx/venv alternatives.

  2. Authenticate in a terminal (one-time):

    bash
    notebooklm login    # auto-installs Chromium on first run
    notebooklm auth check --test --json

    If playwright install chromium fails during login, run it manually:

    bash
    uv tool run --from 'notebooklm-py[browser]' playwright install chromium

Tool usage

Single notebooklm tool with argument array:

notebooklm args=["list", "--json"]
notebooklm args=["auth", "check", "--test", "--json"]
notebooklm args=["create", "Research Notebook", "--json"]
notebooklm args=["source", "add", "https://...", "-n", "<notebook-id>", "--json"]
notebooklm args=["source", "add", "Inline text content...", "-n", "<notebook-id>", "--json"]
notebooklm args=["ask", "Summarize findings", "-n", "<notebook-id>", "--json"]
notebooklm args=["generate", "audio", "-n", "<notebook-id>"]
notebooklm args=["artifact", "wait", "<task-id>", "-n", "<notebook-id>", "--json"]
notebooklm args=["download", "audio", "-a", "<artifact-id>", "output.mp3"]

Command map (v0.7.3)

CategoryCommands
Auth/healthauth check --test --json, doctor --json, status (top-level; auth status is invalid), use <id|partial> (partial prefix matches, e.g. use eadca411 → eadca411-33e4-…), clear (requires confirm: true, no -y)
Notebookslist --json, create <title> --json, rename -n <id> "New Title", delete -n <id> -y (with confirm: true), summary -n <id>, metadata -n <id> --json
Sourcessource add <content> -n <id> --json (auto-detects url/file/youtube/text), source add-drive <file-id> <title> -n <id>, source add-research "<query>" -n <id> --mode deep --no-wait, source list -n <id> --json, source wait <src-id> -n <id> --json, source get <src-id>, source fulltext <src-id>, source guide <src-id>, source refresh <src-id>, source stale <src-id>, source rename <src-id> "New Title", source delete -y <src-id>, source delete-by-title <title> -n <id> -y, source clean -n <id> (auto-remove duplicate/error/blocked sources)
Grounded chatask <question> -n <id> --json (returns citations via references[]), ask --new -y <question> -n <id> --json (new conversation, requires confirm: true + -y), ask -c <conv-id> "follow up", configure -n <id> --persona <text>, history -n <id> --json
Researchresearch status -n <id> --json, research wait -n <id> --json, source add-research "<query>" -n <id> --mode deep --no-wait
Studio generationgenerate audio -n <id>, generate video -n <id>, generate slide-deck -n <id>, generate report -n <id>, generate infographic -n <id>, generate quiz -n <id>, generate flashcards -n <id>, generate mind-map -n <id>, generate data-table -n <id>, generate cinematic-video -n <id>, generate revise-slide (edit one slide in an existing deck)
Artifactsartifact list -n <id> --json, artifact get <art-id>, artifact poll <task-id> -n <id> --json, artifact wait <task-id> -n <id> --json, artifact retry <task-id>, artifact suggestions -n <id> (AI-suggested report topics), artifact rename <art-id> "New Name", artifact delete -y <art-id>, artifact export <art-id> --title "..." --type [docs|sheets]
Downloadsdownload audio [output-path] -a <artifact-id>, download video [output-path] -a <artifact-id>, download slide-deck [output-path] -a <artifact-id> (also: --all, --latest, --name <title>, --dry-run)
Notesnote list -n <id> --json, note get <note-id>, note create <content> -n <id> -t "Title", note rename <note-id> "New Title", note save <note-id> --title "..." --content "...", note delete -y <note-id>
Sharingshare status -n <id> --json, share public --enable|--disable, share add <email> --permission viewer|editor, share remove <email>, share update <email> --permission <level>, share view-level full|chat
Organizationlanguage set <code>, language get, language list, profile list --json, profile switch <name>, profile create <name>, profile rename <name> "New Name", profile delete -y <name>
Agent & skillsagent show {codex|claude} (print agent integration instructions), skill install|show|status|uninstall (manage the NotebookLM→agent skill bridge; install --force overwrites — requires confirm: true)

Rules

  • Navigation: always key on full IDs. The created_at field returned by list/metadata/use/status is not the real creation time — it mutates nearly every call (tracks "last touched"), and status even returns a date-only value. Do not sort, order, or dedup by created_at. The list order and the index field are unstable too (order swaps between calls), so never reference a notebook/source/artifact by index — always use the full id. Partial-prefix IDs also work for use and source/artifact IDs (e.g. use eadca411 resolves to eadca411-…). Root cause is upstream (notebooklm-py); see "Known upstream limitations" below.
  • Use full notebook IDs and explicit -n in parallel agent workflows. Shared notebooklm use context can race across calls.
  • Wait for sources before chat or generation: source wait <src-id> -n <id> --json or check with source list -n <id> --json.
  • Async generation: call generate <type> -n <id> → get task ID → poll with artifact poll <task-id> -n <id> --json or block with artifact wait.
  • Destructive operations (delete, clean, remove, logout, clear, conversation reset) require confirm: true. Most also need -y/--yes in args to avoid a hanging prompt (auth logout, clear, skill uninstall, and history --clear are exceptions — CLI v0.7.3 does not support -y/--yes for those).
  • Start a new conversation: ask --new is destructive (discards server-side conversation). Requires confirm: true and -y/--yes.
  • File overwrites: download, source fulltext -o <path>, or skill install with --force overwrites workspace files — requires confirm: true.
  • Authentication stays in NotebookLM CLI's own storage. Never pass cookies through Pi.

JSON output

Add --json for machine-readable output. Key shapes:

  • ask --json: {"answer": "...", "references": [{"source_id": "...", "cited_text": "...", "citation_number": 1}], "conversation_id": "...", "turn_number": 1}
  • list --json: {"notebooks": [...], "count": N}
  • auth check --test --json: {"status": "ok", "checks": {...}}
  • source list --json: {"sources": [...], "count": N}
  • source wait --json: {"source_id": "...", "status": "ready", "status_code": 2}

Error routing

SymptomLikely causeAction
exit 1 + auth errorExpired sessionRun notebooklm auth check --test --json, re-login if needed
exit 1 + rate limitQuota exceededWait and retry; generation is quota-limited
exit 1 + source errorSource not readyWait with source wait before chat/generation
exit 1 + generation failContent policy or invalid paramsAdjust query or source content
exit 2Timeout or CLI errorIncrease timeout_ms or check args
CLI not foundMissing installuv tool install "notebooklm-py[browser]"
BrowserType.launch_persistent_contextMissing Playwright browserAuto-installed on first notebooklm login; if fails, run uv tool run --from 'notebooklm-py[browser]' playwright install chromium

Known upstream limitations

  • created_at and list ordering are unstable in notebooklm-py (upstream). The created_at value changes across list/metadata/use/status calls for the same notebook, and list index order shifts between calls. Key on full IDs only — never sort, dedup, or reference by index/created_at. See "Navigation: always key on full IDs" in Rules.

常见问题

Notebooklm AI 技能有什么作用?

通过 notebooklm-py CLI bridge(v0.7.3)使用 Google NotebookLM:笔记本、来源、基于来源的聊天、研究和 Studio 工件(音频概览、视频、幻灯片、报告、测验等)。

为什么在 TypingMind 中使用 Notebooklm?

因为您只需安装一次,就能搭配任何模型使用。Notebooklm 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Notebooklm?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bacnh85/pi-extensions/tree/main/pi-notebooklm/skills/notebooklm。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Notebooklm?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Notebooklm 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Notebooklm 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Notebooklm AI 技能免费吗?

是的。bacnh85 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇