update-page
Modify existing Notion pages by updating properties, content, or archiving status to keep information current and organized.
Instructions
Update an existing page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ID of the page to update | |
| properties | Yes | Updated page properties | |
| archived | No | Whether to archive the page |
Implementation Reference
- server.js:401-423 (handler)Handler for the 'update-page' tool. Extracts page_id, properties, and optional archived flag from arguments, constructs parameters, calls Notion's pages.update API, and returns the response as JSON text.else if (name === "update-page") { const { page_id, properties, archived } = args; const updateParams = { page_id, properties, }; if (archived !== undefined) { updateParams.archived = archived; } const response = await notion.pages.update(updateParams); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
- server.js:108-125 (schema)Input schema definition for the 'update-page' tool, specifying required page_id and properties, and optional archived boolean.inputSchema: { type: "object", properties: { page_id: { type: "string", description: "ID of the page to update" }, properties: { type: "object", description: "Updated page properties" }, archived: { type: "boolean", description: "Whether to archive the page" } }, required: ["page_id", "properties"] }
- server.js:105-126 (registration)Registration of the 'update-page' tool in the tools/list response, including name, description, and input schema.{ name: "update-page", description: "Update an existing page", inputSchema: { type: "object", properties: { page_id: { type: "string", description: "ID of the page to update" }, properties: { type: "object", description: "Updated page properties" }, archived: { type: "boolean", description: "Whether to archive the page" } }, required: ["page_id", "properties"] } },