get_notebook_chat_history
Extract conversation history from NotebookLM notebooks to recover previous research, audit queries, and resume context from chat sessions.
Instructions
Extract conversation history from a NotebookLM notebook's chat interface.
This tool uses browser automation to navigate to a notebook and extract all Q&A pairs from the chat UI. This is useful for:
Recovering previous research conversations
Auditing what queries were made in a notebook
Understanding quota usage from direct NotebookLM browser usage
Resuming context from previous sessions
Context Management
Use preview_only: true to get a quick count before extracting full content.
Use output_file to export to JSON instead of returning to context.
Use offset with limit for pagination through large histories.
Examples
Quick audit (preview only):
Export to file (avoids context overflow):
Paginate through history:
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_id | No | Library notebook ID. Use list_notebooks to see available notebooks. | |
| notebook_url | No | Direct notebook URL (overrides notebook_id). Use for notebooks not in your library. | |
| preview_only | No | If true, only returns message count and summary without content. Use this to audit before extracting full history. (default: false) | |
| limit | No | Maximum number of message pairs to return (default: 50, max: 200). | |
| offset | No | Number of message pairs to skip from the start. Use with limit for pagination. (default: 0) | |
| output_file | No | If provided, exports chat history to this JSON file instead of returning to context. Useful for large histories. | |
| show_browser | No | Show browser window for debugging (default: false) |