SuperAPI AI Directory

notebooklm-cli

Office & productivity

View repository

Updated 10-16 08:06

About this skill

notebooklm-cli

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 overview
  • schema: full command contracts (recommended for machine reading)
  • <command>: single command contract
  • progressive: 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 | raw
  • op: in-command operation; if not specified, the default op is used (see help/schema)
  • Compatible with old aliases:action, *_action, new code should uniformly use command/op
  • Unified return fields:success, command, exit_code, stdout, stderr, hints, error?

Command overview (abbreviated)

  • auth: login and profile management (profile_delete forces confirm=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 point
  • report: create (default), requires forced confirmation, supports format/prompt/language/source_ids
  • studio: status/rename/delete (delete requires forced confirmation)
  • raw: pass through argv; prohibit nlm chat start; delete requires confirm=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/login then retry the business command.