search_notes
Search your Notion notes using keywords to find relevant information quickly within your knowledge system.
Instructions
在笔记库中全文搜索笔记。
Args: query: 搜索关键词
Returns: 匹配的笔记列表
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- tools/notes.py:129-139 (handler)The handler function for the `search_notes` tool, which delegates to the Notion client's `search_notes` method.
def search_notes(query: str) -> list[dict]: """ 在笔记库中全文搜索笔记。 Args: query: 搜索关键词 Returns: 匹配的笔记列表 """ return [n.model_dump() for n in get_client().search_notes(query)] - server.py:52-52 (registration)Registration of the `search_notes` tool with the MCP server using the `mcp.tool` decorator.
mcp.tool(search_notes)