# Send NotebookLM CLI Cookies to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "notebooklm-cli-cookies",
    "name": "NotebookLM CLI Cookies",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lhquangit/notebooklm-cli-cookies",
    "canonicalUrl": "https://clawhub.ai/lhquangit/notebooklm-cli-cookies",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/notebooklm-cli-cookies",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=notebooklm-cli-cookies",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "docs/GUIDELINE.md",
      "scripts/aws-inject-notebooklm-auth.sh",
      "scripts/bootstrap_vps_systemd_one_liner.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "notebooklm-cli-cookies",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T05:39:43.470Z",
      "expiresAt": "2026-05-13T05:39:43.470Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=notebooklm-cli-cookies",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=notebooklm-cli-cookies",
        "contentDisposition": "attachment; filename=\"notebooklm-cli-cookies-0.1.4.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "notebooklm-cli-cookies"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/notebooklm-cli-cookies"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/notebooklm-cli-cookies",
    "downloadUrl": "https://openagent3.xyz/downloads/notebooklm-cli-cookies",
    "agentUrl": "https://openagent3.xyz/skills/notebooklm-cli-cookies/agent",
    "manifestUrl": "https://openagent3.xyz/skills/notebooklm-cli-cookies/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/notebooklm-cli-cookies/agent.md"
  }
}
```
## Documentation

### 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 <args> via Exec, and return the relevant stdout.

### Runtime Checks

Before running queries:

Verify auth path is configured:

echo "$NOTEBOOKLM_MCP_CLI_PATH"

Verify login status:

nlm login --check

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

### Query Workflow

List notebooks:

nlm notebook list --json

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.

Query notebook:

nlm notebook query "<notebook_id_or_alias>" "<user_question>"

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:

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."

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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lhquangit
- Version: 0.1.4
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-06T05:39:43.470Z
- Expires at: 2026-05-13T05:39:43.470Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/notebooklm-cli-cookies)
- [Send to Agent page](https://openagent3.xyz/skills/notebooklm-cli-cookies/agent)
- [JSON manifest](https://openagent3.xyz/skills/notebooklm-cli-cookies/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/notebooklm-cli-cookies/agent.md)
- [Download page](https://openagent3.xyz/downloads/notebooklm-cli-cookies)