Add a site language
add_site_languageAdd one visitor language to a site's draft configuration while preserving the original language and all existing content. This does NOT publish anything: first use the returned preview_url to review the translated draft, and call publish_site separately only after the user explicitly approves publication. If the site still has several homepage designs, call list_variations first, show the choices, ask the user to select one, and pass that design's variation_id; never choose one on the user's behalf. The response includes translation/catalog progress. If complete is false or catalog.remaining is greater than zero, retry this same call later until the catalog is complete before publishing; retries reuse the added language and fill pending catalog entries rather than replacing the original. Requires the sites:refine scope and an editor (or stronger) site role.
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": {
"site_id": "<site_id>",
"language": "<language>"
},
"name": "add_site_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to add a language to, from list_sites | |
| language | Yes | BCP 47 language tag, such as "es" or "pt-BR" | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| variation_id | No | The selected homepage design id from list_variations. Required when the site still has several designs; omit for a built or single-design site. |