create_page
Generate a Notion page under a specified parent page or database using the Multi-MCPs server, which integrates multiple third-party APIs for unified functionality.
Instructions
Create a Notion page under a parent page or database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_id | Yes | ||
| properties | Yes |
Implementation Reference
- src/apis/notion/notion.ts:106-111 (handler)The handler function for the 'create_page' tool. It validates the configuration and arguments before calling the Notion client's createPage method.async create_page(args: Record<string, unknown>) { if (!cfg.notionToken) throw new Error("NOTION_TOKEN is not configured"); const parentId = String(args.parent_id || ""); if (!parentId) throw new Error("parent_id is required"); return client.createPage(parentId, args.properties); },
- src/apis/notion/notion.ts:63-74 (registration)Registration of the 'create_page' tool within the Notion tools array, including description and input schema.{ name: "create_page", description: "Create a Notion page under a parent page or database", inputSchema: { type: "object", properties: { parent_id: { type: "string" }, properties: { type: "object" }, }, required: ["parent_id", "properties"], }, },
- src/apis/notion/notion.ts:66-73 (schema)Input schema for the 'create_page' tool defining required parent_id and properties.inputSchema: { type: "object", properties: { parent_id: { type: "string" }, properties: { type: "object" }, }, required: ["parent_id", "properties"], },
- src/apis/notion/notion.ts:23-28 (helper)Helper method in NotionClient class that performs the actual API request to create a page in Notion.createPage(parentId: string, properties: unknown) { return this.request(`/v1/pages`, { method: "POST", body: { parent: { page_id: parentId, database_id: undefined }, properties }, }); }