create_page
Add a new page to an existing website by describing its content. AI generates the page from your prompt, optionally scheduled for later.
Instructions
Create a new page on an existing website using AI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | The website ID | |
| prompt | Yes | Describe the page to create | |
| schedule_at | No | Optional ISO 8601 datetime to schedule for later |
Implementation Reference
- server/index.js:454-469 (registration)Registration of the 'create_page' tool using server.tool()
server.tool( "create_page", "Create a new page on an existing website using AI.", { website_id: z.string().describe("The website ID"), prompt: z.string().describe("Describe the page to create"), schedule_at: z.string().optional().describe("Optional ISO 8601 datetime to schedule for later"), }, { title: "Create Page", readOnlyHint: false, destructiveHint: false, openWorldHint: true }, async ({ website_id, prompt, schedule_at }) => { const body = { prompt }; if (schedule_at) body.schedule_at = schedule_at; const data = await apiCall(`/v1/ai/workspace/website/${website_id}/page`, "POST", body); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } ); - server/index.js:463-468 (handler)Handler function that calls the API to create a page using AI
async ({ website_id, prompt, schedule_at }) => { const body = { prompt }; if (schedule_at) body.schedule_at = schedule_at; const data = await apiCall(`/v1/ai/workspace/website/${website_id}/page`, "POST", body); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - server/index.js:457-461 (schema)Input schema defining website_id, prompt, and optional schedule_at parameters
{ website_id: z.string().describe("The website ID"), prompt: z.string().describe("Describe the page to create"), schedule_at: z.string().optional().describe("Optional ISO 8601 datetime to schedule for later"), },