Create a page
create_pageAdds a page the way the Pages panel does. On a Xodia template site: a page file that mirrors its folders (src/pages/services/web/Design.tsx) and its route in src/routes.tsx at //, inside the site's layout, with a starter section (data-section="page-header": the title tag, the h1 and a line to replace); folderPage true makes the page at that folder's own address, with its file inside the folder (src/pages/what-we-do/WhatWeDo.tsx) and a starter list of links to the folder's pages to edit. On a React site with its routes in code (/ elements, a routes array or createBrowserRouter): a page file beside the others plus its route and import in that routes file. On a plain HTML site: //index.html with the home page's head, header and footer around the starter section. parent is the folder it goes in. Addresses are lowercase words with dashes, up to 5 folder levels; an address another page, folder or collection uses is refused with address_clash and the reason (a collection's item level, /blog/, belongs to its items unless the collection reserves that slug). Refused with plan_limit past the plan's page limit (the home page plus the plan's pages; the home page and collection pages don't count). Refused with 409 and action ask_agent when Xodia can't change this site's routes safely (route_shape_unsupported, route_unreadable) or the HTML site lists its pages in vite.config (html_pages_listed): then add the page in code yourself, the way the site adds its other pages (skill create-page). Where create_page works, never write the route or page file yourself. A page per collection item is never a page: create_collection makes the collection page. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. The site plan follows in the same change.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"projectId": "<projectId>"
},
"name": "create_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Optional: the last part of the address (lowercase, dashes); default from the title | |
| title | Yes | The page's name: its h1, its title tag and its label in the Pages panel | |
| branch | No | Optional branch; default the branch the workspace has open | |
| parent | No | The folder the page goes in ("services" or "services/web", up to 5 levels); omit for the site root. Missing folders are made by the address | |
| projectId | Yes | Project id from list_projects | |
| folderPage | No | true: the page at the parent folder's own address (/services), its folder page. slug is ignored |