get-page
Retrieve specific pages from Notion workspaces using their unique page ID. This tool enables AI assistants to access and work with Notion content efficiently.
Instructions
Retrieve a page by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ID of the page to retrieve |
Implementation Reference
- server.js:493-509 (handler)Handler logic for the 'get-page' tool: destructures page_id from arguments, removes dashes from the ID, retrieves the page using Notion's pages.retrieve API, and returns the JSON response as text content.else if (name === "get-page") { let { page_id } = args; // Remove dashes if present in page_id page_id = page_id.replace(/-/g, ""); const response = await notion.pages.retrieve({ page_id }); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
- server.js:182-193 (schema)Input schema definition for the 'get-page' tool, registered in the tools/list response. Requires a 'page_id' string.name: "get-page", description: "Retrieve a page by its ID", inputSchema: { type: "object", properties: { page_id: { type: "string", description: "ID of the page to retrieve" } }, required: ["page_id"] }