notebooklm-py-skill
Use this skill when the user asks to operate Google NotebookLM through the local notebooklm CLI: notebooks, sources, chat, research, notes, sharing, artifacts, or exports.
Core Rules
- Verify auth with
notebooklm auth check --test --jsonbefore any workflow that depends on account access. - Prefer explicit notebook IDs (
-n NOTEBOOK_IDor--notebook NOTEBOOK_ID) in automation; avoid sharednotebooklm usecontext in parallel workflows. - Prefer
--jsonfor commands whose output will be parsed, cited, or used as evidence. - Ask before destructive or long-running work: notebook delete, source delete/clean, artifact delete, generation, downloads, saved notes, and waits in the main conversation.
- Put one-off prompt/source/output files under a temporary directory and clean them up unless the user asked to keep them.
- Never run
notebooklm doctor --fixwithout explicit confirmation.
Common Commands
notebooklm auth check --test --json
notebooklm list --json
notebooklm metadata -n NOTEBOOK_ID --json
notebooklm source list -n NOTEBOOK_ID --json
notebooklm source add "https://example.com" -n NOTEBOOK_ID --json
notebooklm source add ./file.pdf -n NOTEBOOK_ID --json
notebooklm source add - --type text --title "notes.md" -n NOTEBOOK_ID --json < /tmp/openclaw-attachments/notes.md
notebooklm ask "Question" -n NOTEBOOK_ID --json
notebooklm ask --prompt-file /tmp/openclaw-attachments/question.txt -n NOTEBOOK_ID --json
notebooklm artifact list -n NOTEBOOK_ID --json
Workflows
Query A Notebook
- Run auth verification.
- Locate the notebook with
list --json, or use the provided ID/URL. - Ask with
ask ... -n NOTEBOOK_ID --json. - If the answer is incomplete, ask focused follow-ups and synthesize.
Add Sources Then Query
- Create or identify the notebook.
- Add URL/file/text sources with
source add ... --json. - If the next step depends on indexing, wait for returned source IDs with
source wait SOURCE_ID -n NOTEBOOK_ID --json. - Ask or generate only after required sources are ready.
References
Load references/notebooklm-py-cli.md for command groups, 0.5.0 compatibility notes, artifact examples, and troubleshooting.
