MCPcopy
hub / github.com/teng-lin/notebooklm-py / list

Method list

src/notebooklm/_notes.py:68–91  ·  view source on GitHub ↗

List all text notes in the notebook. This excludes: - Mind maps (stored in same structure but contain JSON with 'children'/'nodes') - Deleted notes (status=2, content cleared but ID persists) Args: notebook_id: The notebook ID. Returns:

(self, notebook_id: str)

Source from the content-addressed store, hash-verified

66 self._mind_maps = mind_maps
67
68 async def list(self, notebook_id: str) -> list[Note]:
69 """List all text notes in the notebook.
70
71 This excludes:
72 - Mind maps (stored in same structure but contain JSON with 'children'/'nodes')
73 - Deleted notes (status=2, content cleared but ID persists)
74
75 Args:
76 notebook_id: The notebook ID.
77
78 Returns:
79 List of Note objects.
80 """
81 logger.debug("Listing notes in notebook: %s", notebook_id)
82 all_items = await self._get_all_notes_and_mind_maps(notebook_id)
83 notes: list[Note] = []
84
85 for item in all_items:
86 kind = self._notes.classify_row(item)
87 if kind in (NoteRowKind.DELETED, NoteRowKind.MIND_MAP):
88 continue
89 notes.append(self._parse_note(item, notebook_id))
90
91 return notes
92
93 async def get(self, notebook_id: str, note_id: str) -> Note | None:
94 """Get a specific note by ID.

Calls 3

_parse_noteMethod · 0.95
classify_rowMethod · 0.80