update_page
Modify properties of a Notion page directly by specifying the page ID and updated properties. Simplifies content management within Notion using 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 that executes the update_page tool logic, validating the Notion token and page_id, then calling the client updatePage method.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)Input schema for the update_page tool, requiring page_id (string) and properties (object).inputSchema: { type: "object", properties: { page_id: { type: "string" }, properties: { type: "object" }, }, required: ["page_id", "properties"], },
- src/apis/notion/notion.ts:75-86 (registration)Registration of the update_page tool in the tools array returned by registerNotion(), including name, description, and inputSchema.{ 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)NotionClient helper method that performs the actual API request to update a Notion page.updatePage(pageId: string, properties: unknown) { return this.request(`/v1/pages/${pageId}`, { method: "PATCH", body: { properties }, }); }