update-page
Modify properties or archive an existing page in Notion using the 'update-page' tool. Provide the page ID and new properties to keep your workspace content up-to-date.
Instructions
Update an existing page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| archived | No | Whether to archive the page | |
| page_id | Yes | ID of the page to update | |
| properties | Yes | Updated page properties |
Implementation Reference
- server.js:399-421 (handler)Handler for the 'update-page' tool. Extracts page_id, properties, and optional archived flag from arguments, constructs update parameters, calls Notion's pages.update API, and returns the JSON response as text content.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:103-124 (registration)Registration of the 'update-page' tool in the tools/list response, including name, description, and input schema definition.{ 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"] } },