get_note
Retrieve complete details of a single Notion page, including its body content, by providing the page ID. Use this tool to access full note information for workflow management.
Instructions
获取单篇笔记的完整详情(含 body 内容)。
Args: note_id: Notion 页面 ID include_content: 是否返回页面 body 内容,默认 True
Returns: 笔记详情,如果 include_content=True 则包含 content 字段
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | ||
| include_content | No |
Implementation Reference
- tools/notes.py:55-71 (handler)The handler function that executes the logic to fetch a note from Notion by its ID, optionally including its content.
def get_note(note_id: str, include_content: bool = True) -> dict: """ 获取单篇笔记的完整详情(含 body 内容)。 Args: note_id: Notion 页面 ID include_content: 是否返回页面 body 内容,默认 True Returns: 笔记详情,如果 include_content=True 则包含 content 字段 """ client = get_client() note = client.get_note(note_id) result = note.model_dump() if include_content: result["content"] = client.get_note_content(note_id) return result - server.py:49-49 (registration)Registration of the get_note tool within the MCP server setup.
mcp.tool(get_note)