Create site
create_siteCreates a new uCoz site on the signed-in account at the given address and zone, sets it up and makes it the default site of reads without site_id, as select_site does. A repeated call with the same address returns that site with existed: true. An account that cannot own sites yet gets code ACCOUNT_SETUP_REQUIRED with setup_url, the uCoz page where the user completes it; limits come with code and error_code (RATE_LIMITED adds retry_after_minutes, SITE_LIMIT_PHONE adds url). A site that exists but is not set up yet gets code ACTIVATION_IN_PROGRESS (another call is setting it up: wait retry_after_seconds) or ACTIVATION_FAILED; in both cases call create_site again with the same address. site_name, design and modules take effect only when the site is set up for the first time: not_applied lists the ones this call did not apply, ignored lists arguments that are not parameters of the tool, and note explains both.
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": {
"addr": "<addr>",
"dom": "<dom>"
},
"name": "create_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dom | Yes | Zone code (not the full hostname). Pass the code before "="; the site URL is https://{addr}.{host}. Available: l = usite.pro; r = ucoz.site; s = ucoz.club; e = ucoz.net; f = ucoz.org; 6 = clan.su; 7 = moy.su; 8 = do.am. | |
| lng | No | Two-letter language code, default en | |
| addr | Yes | Site address: 2-30 characters a-z, 0-9 and "-"; check_site_address tells whether it is free | |
| design | No | Standard design id, default 2301. Any design of the uCoz design library is accepted, also one the catalog no longer offers. tmaker_read designs_list lists the offered designs but needs a site of the account: for the first site of an account omit design and look at designs_list once the site exists. | |
| modules | No | Modules to install; the site module is always installed. Default: site only | |
| site_name | No | Site name, up to 50 characters; default: the standard name |