#!/usr/bin/env python3 """List all NotebookLM notebooks.""" import json import subprocess result = subprocess.run( ['/opt/ai-os/products/ceo/integrations/notebooklm-mcp-cli/.venv/bin/nlm', 'notebook', 'list'], capture_output=True, text=True ) notebooks = json.loads(result.stdout) print(f'Total notebooks: {len(notebooks)}') for n in notebooks: print(f'{n["id"]} | {n["title"]} | {n["source_count"]} sources')