← 返回
开发者工具 中文

NotebookLM CLI Cookies

Search and answer questions over documents already uploaded to NotebookLM using the nlm CLI. Use when users ask to find information, summarize sources, or query a specific NotebookLM notebook.
使用 nlm CLI 检索并回答已上传至 NotebookLM 的文档问题。适用于用户需要查找信息、总结来源或查询特定笔记本时。
lhquangit lhquangit 来源
开发者工具 clawhub v0.1.4 1 版本 99939.3 Key: 无需
★ 0
Stars
📥 1,646
下载
💾 63
安装
1
版本
#latest

概述

NotebookLM CLI

Purpose

Use this skill when the user wants to search or ask questions over content that already exists in NotebookLM notebooks.

This skill assumes:

  • nlm is installed (notebooklm-mcp-cli package).
  • Auth was pre-injected for headless runtime.
  • NOTEBOOKLM_MCP_CLI_PATH points to the auth storage directory.

Hard Rules (avoid wrong tool choices)

When the user mentions any of the following, treat it as a strict request to query NotebookLM:

  • "NotebookLM", "notebooklm"
  • "notebook alias", "alias"
  • a known alias name (for example: tai_lieu_dien, nlm_tai_lieu_dien)

In these cases:

  • Always run nlm via Exec to answer. Do not answer from memory.
  • Do not switch to web search unless the user explicitly asks for web sources.
  • If the answer is not in the notebook, say so (based on the nlm output).

Slash command:

  • If the user invokes this skill via /nlm ... in Telegram, treat the raw text after /nlm as the nlm arguments.
  • Always execute exactly: nlm via Exec, and return the relevant stdout.

Runtime Checks

Before running queries:

  1. Verify auth path is configured:
  2. echo "$NOTEBOOKLM_MCP_CLI_PATH"
    
  3. Verify login status:
  4. nlm login --check
    

If auth check fails, stop and ask for auth refresh workflow (do not run browser login in AWS runtime).

Query Workflow

  1. List notebooks:
  2. nlm notebook list --json
    
  3. Select notebook:
    • If user provided notebook id, use it directly.
    • If user provided title, resolve it to notebook_id from the list output (do not pass raw title into nlm notebook get/source list/query).
    • If user provided alias, use the alias.
    • If ambiguous, ask user to choose one notebook.
  4. Query notebook:
  5. nlm notebook query "<notebook_id_or_alias>" "<user_question>"
    
  6. Return answer and include which notebook was queried.

Notes:

  • nlm notebook list 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 results.
  • If the user will query the same notebook often, create an alias and use it consistently (for example: tai_lieu_dien).

Telegram Prompt Templates (copy/paste)

Prefer one of these formats to reliably trigger this skill:

1) Force CLI query:

Chạy lệnh: nlm notebook query 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."

2) 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 web, không đọc file local.

Output Guidelines

  • Be explicit about notebook identity (title + id when available).
  • If query result is empty or vague, suggest a refined follow-up query.
  • Prefer concise, factual answers grounded in NotebookLM response.

Common Errors

  • Authentication expired / 401 / 403:
  • Check NOTEBOOKLM_MCP_CLI_PATH.
  • Ensure profiles/default/cookies.json and profiles/default/metadata.json exist.
  • Refresh cookies outside AWS (machine with browser), then redeploy secret.
  • nlm: command not found:
  • Install package: pipx install notebooklm-mcp-cli (recommended), or uv tool install notebooklm-mcp-cli.

Command Reference

# List notebooks
nlm notebook list --json

# Query notebook by id or alias
nlm notebook query "<notebook_id_or_alias>" "<question>"

# Check auth status
nlm login --check

版本历史

共 1 个版本

  • v0.1.4 当前
    2026-03-28 22:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Baidu web search

ide-rea
使用百度AI搜索引擎(BDSE)进行网络搜索。适用于获取实时信息、文档资料或研究课题。
★ 242 📥 106,510
knowledge-management

Prismfy Web Search | Free Google

uroboros1205
OpenClaw的默认网页搜索。使用Prismfy在10个搜索引擎(Google、Reddit、GitHub、arXiv、Hacker News等)搜索网络,含免费套餐。
★ 36 📥 83,934
knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 57 📥 153,097