docs(portals): NotebookLM portal template + operator guide#15
Merged
Conversation
Phase 1 of NotebookLM integration per ADR-035 (wiki). NotebookLM ships as a portal-target under ADR-018's vocabulary, reusing the obscura CDP pool resolved in ADR-017 — no parallel Patchright Chromium stack, no new Go code. - docs/portals/notebooklm.toml.tmpl: TOML template for the legacy / advanced path (manual config + cookie scope). - docs/portals/notebooklm.md: operator guide with three setup paths (clawtool portal add wizard / clawtool portal record / manual template), maintenance, troubleshooting. Verified against v0.22.155 binary: clawtool portal add <name> and clawtool portal record <name> are both live; predicate types match internal/portal/ask.go (selector_exists, selector_visible, eval_truthy). Live end-to-end flow not exercised on this host (operator-side cookie material required for that step). Note on commit hygiene: this ran via bash git commit because the mcp__clawtool__Commit MCP tool was unavailable in this session (daemon socket dropped). Pre-commit rules.toml gates do not trigger on this changeset (no Go files touched, no internal/cli or commands paths).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 of NotebookLM integration. Ships NotebookLM as a portal-target under ADR-018's vocabulary, reusing the obscura CDP pool resolved in ADR-017. No new Go code, no parallel Patchright Chromium stack, no new MCP source.
Setup paths — all already live in v0.22.155
clawtool portal add notebooklm— interactive wizard (recommended default). Opens Chrome, watches login, captures cookies via CDP, prompts for three selectors + response-done predicate, writes bothconfig.tomland thesecrets.tomlcookie scope.clawtool portal record notebooklm --url <notebook-url>— semi-automated. Drives obscura via CDP, captures cookies plus heuristic selectors, writes to~/.config/clawtool/portals/notebooklm.toml.docs/portals/notebooklm.toml.tmplfor advanced cases (committing config to a shared location, importing pre-existing cookies).What's covered
Chat / Q&A with citation-backed answers via the existing portal flow. Predicate types match the schema in
internal/portal/ask.go(selector_exists / selector_visible / eval_truthy).What's NOT covered (Phase 2 territory if a real workflow needs it)
generate_audio→ pollget_audio_status→download_audio)A future ADR can wrap an upstream NotebookLM MCP server (PleasePrompto's
notebooklm-mcpv2.0.0 was smoke-tested as the cleanest candidate) for the audio/ingestion path with aconsent_required = truecatalog flag if that need surfaces.Files
docs/portals/notebooklm.toml.tmpl(55 lines) — TOML template + cookie scope shapedocs/portals/notebooklm.md(133 lines) — operator guide with three setup paths, maintenance, troubleshootingValidation status
internal/portal/ask.goschemaclawtool portal add/clawtool portal recordlive in v0.22.155Real validation: operator runs
clawtool portal add notebooklmagainst their NotebookLM cookies. Selector / cookie corrections (if NotebookLM ships UI changes) land via follow-up PR.Wiki context
ADR-035 lives in
wiki/decisions/(gitignored local knowledge base). The portal-first rationale: ADR-018's closing example list explicitly named NotebookLM as a portal-target candidate, and ADR-017's resolved obscura pool already provides the CDP primitive that upstream MCP servers reach for via parallel Patchright stacks.Hygiene note
This commit ran via
bash git commitbecause themcp__clawtool__CommitMCP tool was unavailable in the dispatching session (daemon socket dropped earlier). Pre-commitrules.tomlgates do not match this changeset (no Go, nointernal/cli/**, nocommands/*.md).