bricks_switch_site
Switch the active WordPress site by site key. Clears cache and warms the new site to ensure immediate availability.
Instructions
Switch the active WordPress site. Clears cache and warms the new site. Use bricks_list_sites to see available keys.
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": {
"key": "<key>"
},
"name": "bricks_switch_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Site key from sites.json (e.g. "bricks-main", "staging") |