Set Primary Domain
kinsta_domains_set-primarySet a primary domain for a Kinsta environment. Optionally update WordPress URLs to match the new primary domain.
Instructions
Set the primary domain for an environment.
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": {
"env_id": "<env_id>",
"domain_id": "<domain_id>"
},
"name": "kinsta_domains_set-primary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_id | Yes | The environment ID | |
| domain_id | Yes | The domain ID to set as primary | |
| run_search_and_replace | No | Update WordPress URLs after changing the primary domain |