update_page
Modify properties of a Notion page by specifying the page ID and updated property values to manage content within the Multi-MCPs server.
Instructions
Update a Notion page properties
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| properties | Yes |
Implementation Reference
- src/apis/notion/notion.ts:112-117 (handler)The handler function for the 'update_page' tool. It checks for the Notion token configuration, extracts and validates the page_id from args, and delegates to the Notion client's updatePage method with the provided properties.async update_page(args: Record<string, unknown>) { if (!cfg.notionToken) throw new Error("NOTION_TOKEN is not configured"); const pageId = String(args.page_id || ""); if (!pageId) throw new Error("page_id is required"); return client.updatePage(pageId, args.properties); },
- src/apis/notion/notion.ts:78-85 (schema)The input schema definition for the 'update_page' tool, specifying required 'page_id' (string) and 'properties' (object). Used for validation during tool invocation.inputSchema: { type: "object", properties: { page_id: { type: "string" }, properties: { type: "object" }, }, required: ["page_id", "properties"], },
- src/apis/notion/notion.ts:75-86 (registration)The tool registration entry for 'update_page' within the registerNotion() function's tools array. Includes name, description, and input schema.{ name: "update_page", description: "Update a Notion page properties", inputSchema: { type: "object", properties: { page_id: { type: "string" }, properties: { type: "object" }, }, required: ["page_id", "properties"], }, },
- src/apis/notion/notion.ts:30-35 (helper)The NotionClient helper method that performs the actual API request to update a page's properties via Notion's PATCH /v1/pages/{pageId} endpoint. Called by the tool handler.updatePage(pageId: string, properties: unknown) { return this.request(`/v1/pages/${pageId}`, { method: "PATCH", body: { properties }, }); }