NotebookLM CLI Cookies — NotebookLM 命令行工具 Cookies
v0.1.4搜索 and answer questions over documents already 上传ed to NotebookLM using the nlm 命令行工具. Use when users ask to find in格式化ion, summarize sources, or 查询 a specific NotebookLM notebook.
运行时依赖
安装命令
点击复制技能文档
NotebookLM 命令行工具 Purpose
Use this 技能 when the user wants to 搜索 or ask questions over content that already exists in NotebookLM notebooks.
This 技能 assumes:
nlm is 安装ed (notebooklm-mcp-命令行工具 package). Auth was pre-injected for headless 运行time. NOTEBOOKLM_MCP_命令行工具_PATH points to the auth storage directory. Hard Rules (avoid wrong 工具 choices)
When the user mentions any of the following, treat it as a strict 请求 to 查询 NotebookLM:
"NotebookLM", "notebooklm" "notebook alias", "alias" a known alias name (for example: tAI_lieu_dien, nlm_tAI_lieu_dien)
In these cases:
Always 运行 nlm via Exec to answer. Do not answer from memory. Do not switch to 网页 搜索 unless the user explicitly asks for 网页 sources. If the answer is not in the notebook, say so (based on the nlm 输出).
Slash command:
If the user invokes this 技能 via /nlm ... in Telegram, treat the raw text after /nlm as the nlm arguments. Always 执行 exactly: nlm via Exec, and return the relevant stdout. 运行time 检查s
Before 运行ning queries:
验证 auth path is 配置d: echo "$NOTEBOOKLM_MCP_命令行工具_PATH"
验证 记录in 状态: nlm 记录in --检查
If auth 检查 fAIls, 停止 and ask for auth refresh 工作流 (do not 运行 browser 记录in in AWS 运行time).
查询 工作流 列出 notebooks: nlm notebook 列出 --json
Select notebook: If user provided notebook id, use it directly. If user provided title, resolve it to notebook_id from the 列出 输出 (do not pass raw title into nlm notebook 获取/source 列出/查询). If user provided alias, use the alias. If ambiguous, ask user to choose one notebook. 查询 notebook: nlm notebook 查询 "" ""
Return answer and include which notebook was queried.
Notes:
nlm notebook 列出 returns titles for display, but many other commands expect a notebook id (UUID) or an alias. Passing a title like "tài liệu điện" may return null/empty 结果s. If the user will 查询 the same notebook often, 创建 an alias and use it consistently (for example: tAI_lieu_dien). Telegram Prompt Templates (copy/paste)
Prefer one of these 格式化s to reliably trigger this 技能:
Force 命令行工具 查询: Chạy lệnh: nlm notebook 查询 tAI_lieu_dien "giá của A9N61500 là bao nhiêu? Nếu notebook không có thông tin giá thì trả lời: không thấy trong NotebookLM."
Natural language but explicit: Trong NotebookLM notebook alias tAI_lieu_dien: trả lời câu hỏi "giá của A9N61500 là bao nhiêu?". Bắt buộc dùng nlm để truy vấn, không tìm 网页, không đọc file local.
输出 图形界面delines Be explicit about notebook 身份 (title + id when avAIlable). If 查询 结果 is empty or vague, suggest a refined follow-up 查询. Prefer concise, factual answers grounded in NotebookLM 响应. Common Errors Authentication expired / 401 / 403: 检查 NOTEBOOKLM_MCP_命令行工具_PATH. Ensure 性能分析s/default/cookies.json and 性能分析s/default/metadata.json exist. Refresh cookies outside AWS (machine with browser), then re部署 secret. nlm: command not found: 安装 package: pipx 安装 notebooklm-mcp-命令行工具 (recommended), or uv 工具 安装 notebooklm-mcp-命令行工具. Command Reference # 列出 notebooks nlm notebook 列出 --json
# 查询 notebook by id or alias nlm notebook 查询 "" ""
# 检查 auth 状态 nlm 记录in --检查