Create a draft
create_draftCreates a new page, collection entry or global as a draft in one region and locale. It is never live until a person publishes it; finish with submit_for_review. Check the content type's fields and blocks with get_schema first. Returns the new draft's id, name, url, contentType and status. Refused with the reason when a field is invalid, the address is already taken, or you may not write to that environment or region (see list_scopes). Landing pages, popups, banners and shop products use draft_special_content instead.
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": {
"contentType": "<contentType>",
"name": "<name>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seo | No | Only the SEO fields you give change; the others are kept. | |
| name | Yes | The name people see in the CMS; also the page title unless a field sets one. | |
| slug | No | The last part of the address, such as winter-trips. Made from the name when left out. Only for content types with addresses. | |
| fields | No | Field values by field key, in the shapes get_schema gives for this content type. On update this replaces all the draft's fields: include the ones you keep. | |
| locale | No | Locale code, such as de-DE. Defaults to the region's default locale. | |
| region | No | Region key, such as germany. Defaults to the default region. | |
| folderId | No | The folder to create it in, from list_pages. Leave out for the top level. | |
| components | No | The page's blocks, in the blockShape from get_schema. This replaces the whole block list: keep each block you leave unchanged, with its id. | |
| contentType | Yes | The content type key from get_schema, such as page or article. | |
| environment | No | Environment key. Defaults to "staging". |