Manage multi-turn sessions with ask_question
mainTo maintain conversational context in NotebookLM, reuse the session_id returned by the ask_question tool in subsequent calls.
- To continue a conversation: Include the
session_idin the arguments ofask_question. - To reset a conversation: Call
reset_sessionwith the currentsession_id. - To end a conversation: Call
close_sessionwith the currentsession_id.
Sessions automatically expire after 900 seconds (15 minutes) of inactivity.
// 1. Open broad — captures session_id
{ "name": "ask_question", "arguments": { "question": "Give me an overview of the n8n error handling architecture." }}
// → response.session_id = "ses_abc123"
// 2. Drill in using the session_id
{ "name": "ask_question", "arguments": { "question": "What's the recommended retry/backoff pattern for HTTP nodes?", "session_id": "ses_abc123" }}
// 3. Reset the session
{ "name": "reset_session", "arguments": { "session_id": "ses_abc123" } }
// 4. Close the session
{ "name": "close_session", "arguments": { "session_id": "ses_abc123" } }