Create CMS items
create_itemsCreates up to 50 items in one call, each checked against the collection's fields (required, types, options, validation, references to existing items or items in this call). Items that fail are listed with their index and field problems and the others are still written: send only the failed ones again. Values never go into page code: pages show them through the CMS kit. Values by field type: plainText and richText a string (richText is Markdown; the field marked body is the item file's body), image {"src": "/images//x.webp" or https URL, "alt": "..."}, multiImage a list of those, videoLink an https URL, link an https URL, a /path, mailto: or tel:, email, phone, number a number, date "YYYY-MM-DD", dateTime an ISO date and time, switch true or false, color "#rrggbb", option the option id, file a path or URL, reference the target item's slug, multiReference a list of slugs. null or "" clears a value on update. New items are drafts unless draft is false. Writes go to the branch the workspace has open as unsaved changes the user reviews and saves in Xodia, the same as the Content tab. Works on every plan within its collection and item limits (Free: 2 collections and 100 items a site); turning a folder into a Xodia collection needs a paid plan.
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": {
"collection": "<collection>",
"items": "<items>",
"projectId": "<projectId>"
},
"name": "create_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| branch | No | Optional branch; default the branch the workspace has open | |
| projectId | Yes | Project id from list_projects | |
| collection | Yes | The collection id (its folder under content/), from list_collections |