| name | nlm |
| description | Query NotebookLM knowledge base (Layer 6) for grounded answers |
| user-invocable | false |
Knowledge Base Query (NotebookLM)
Query curated reference documents — research papers, technical docs, guides.
nlm notebook query <NOTEBOOK_ID> "your question here" --json
Other commands:
nlm notebook list --json
nlm notebook create <name> --json
nlm source list <NOTEBOOK_ID> --json
Troubleshooting
If nlm returns 400 Bad Request or auth errors, the session has expired. Fix:
nlm login
This opens a browser for Google re-authentication. Happens periodically when Google rotates session tokens.
Returns JSON: answer, sources_used.
When to use
- Questions about uploaded reference material (docs, research, guides)
- Technical documentation lookups local memory wouldn't have
- Local memory search returned nothing and question is about curated knowledge
When NOT to use
- Answer already in conversation context
- Personal memories / past conversations (use memory-search)
- Real-time / live information (knowledge base is static)