Create a website
websites_createCreates a website in the organization. Provide either a name (trimmed, 1–200 characters) or a creation prompt; a prompt returns immediately with the temporary name Untitled site, which the built-in naming request attempts to replace on its next run together with a matching available slug and platform hostname. The hostname receives a short suffix when the clean hostname is unavailable. An omitted slug is allocated from the initial name; an explicit slug must be lowercase, URL-safe, unreserved, and unique among active websites in the organization. The website starts as an unpublished draft at headVersion 1. Send an idempotencyKey to make retries return the same website. Edit its source through the Source code operations, then publish with websiteSourceCode.head.publish.
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": {
"organizationId": "<organizationId>"
},
"name": "websites_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slug | No | ||
| prompt | No | ||
| idempotencyKey | No | Caller-generated key, such as a UUID, that makes creation safe to retry. Send the same key on every retry of one creation attempt: when this organization already has a website created with the key, that website is returned and no second website is created. A key whose website is in the trash returns a 409 with `idempotencyKeyStatus: "deleted"`; retry with a new key. | |
| organizationId | Yes |