Runs independently and locally, without relying on any channel registration. Unified entry point:
python3 skills/notebooklm-cli/run.py <command> [op] [--flag value ...]
Progressive help (let the LLM learn the contract first)
overview: entry point, environment variables, command overviewschema: full command contracts (recommended for machine reading)<command>: single command contractprogressive: overview + contract chain for each command
python3 skills/notebooklm-cli/run.py help --topic overview
python3 skills/notebooklm-cli/run.py help --topic schema
python3 skills/notebooklm-cli/run.py help --topic progressive
If you need underlying native command help, you can add:
python3 skills/notebooklm-cli/run.py help --topic source --include_cli true
Input contract (unified)
command:help | auth | notebook | source | query | report | studio | rawop: in-command operation; if not specified, the default op is used (seehelp/schema)- Compatible with old aliases:
action,*_action, new code should uniformly usecommand/op - Unified return fields:
success, command, exit_code, stdout, stderr, hints, error?
Command overview (abbreviated)
auth: login and profile management (profile_deleteforcesconfirm=true)notebook: list/create/get/describe/rename/query/delete (delete requires forced confirmation)source: list/add_*/get/describe/content/rename/delete (delete requires forced confirmation)query: notebook query shortcut entry pointreport: create (default), requires forced confirmation, supports format/prompt/language/source_idsstudio: status/rename/delete (delete requires forced confirmation)raw: pass through argv; prohibitnlm chat start; delete requiresconfirm=true
Minimal E2E example
python3 skills/notebooklm-cli/run.py auth check
python3 skills/notebooklm-cli/run.py notebook create --title 'NLM E2E'
python3 skills/notebooklm-cli/run.py source add_url --notebook_id '<nb-id>' --url https://example.com/article
python3 skills/notebooklm-cli/run.py query --notebook_id '<nb-id>' --question '总结 3 个关键结论'
python3 skills/notebooklm-cli/run.py report --notebook_id '<nb-id>' --confirm true
python3 skills/notebooklm-cli/run.py studio status --notebook_id '<nb-id>'
Rules
- Explicit confirmation is required before deletion:
confirm=true。 - Prohibit interactive
nlm chat start。 - If authentication fails, first execute
auth/loginthen retry the business command.