Commands
Always run scripts through the wrapper:
python scripts/run.py <script> [args...]Authentication
Check status:
python scripts/run.py auth_manager.py statusSet up login with a visible browser:
python scripts/run.py auth_manager.py setupRe-authenticate:
python scripts/run.py auth_manager.py reauthValidate saved auth:
python scripts/run.py auth_manager.py validateClear auth:
python scripts/run.py auth_manager.py clearNotebook library
List:
python scripts/run.py notebook_manager.py listAdd:
python scripts/run.py notebook_manager.py add \
--url "https://notebooklm.google.com/notebook/..." \
--name "Notebook Name" \
--description "What the notebook contains" \
--topics "topic1,topic2,topic3"Search:
python scripts/run.py notebook_manager.py search --query "keyword"Activate:
python scripts/run.py notebook_manager.py activate --id notebook-idRemove:
python scripts/run.py notebook_manager.py remove --id notebook-idStats:
python scripts/run.py notebook_manager.py statsNotebook queries
Use active notebook:
python scripts/run.py ask_question.py --question "Your question here"Use a specific saved notebook:
python scripts/run.py ask_question.py --question "..." --notebook-id notebook-idUse a direct NotebookLM URL:
python scripts/run.py ask_question.py --question "..." --notebook-url "https://notebooklm.google.com/notebook/..."Show browser during query debugging:
python scripts/run.py ask_question.py --question "..." --show-browserCleanup
Preview cleanup:
python scripts/run.py cleanup_manager.pyExecute cleanup:
python scripts/run.py cleanup_manager.py --confirmPreserve saved notebook library:
python scripts/run.py cleanup_manager.py --confirm --preserve-library