list_notes
Retrieve notes from your Notion database with filters for note type, tags, or quantity to organize and access information efficiently.
Instructions
列出笔记库中的笔记。
Args: note_type: 按类型过滤,可选:会议记录 | 想法 | 参考 | 速记 tag: 按标签过滤,精确匹配单个标签名称 limit: 返回条数,默认 20,最大 100
Returns: 笔记列表(字典格式,不含 body 内容)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_type | No | ||
| tag | No | ||
| limit | No |
Implementation Reference
- tools/notes.py:26-49 (handler)The handler function for the 'list_notes' tool, which retrieves notes from the Notion client based on optional type, tag, and limit filters.
def list_notes( note_type: Optional[str] = None, tag: Optional[str] = None, limit: int = 20, ) -> list[dict]: """ 列出笔记库中的笔记。 Args: note_type: 按类型过滤,可选:会议记录 | 想法 | 参考 | 速记 tag: 按标签过滤,精确匹配单个标签名称 limit: 返回条数,默认 20,最大 100 Returns: 笔记列表(字典格式,不含 body 内容) """ client = get_client() notes = client.list_notes( note_type=NoteType(note_type) if note_type else None, tag=tag, limit=limit, ) return [n.model_dump() for n in notes]