Activate a theme
wp_theme_activateSwitch the active WordPress theme by providing its stylesheet slug. Changing themes on a live site is high-impact; test on a staging copy first.
Instructions
Switch the active theme. Changing themes on a live site is high-impact; prefer a staging copy.
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": {
"stylesheet": "<stylesheet>"
},
"name": "wp_theme_activate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be "activate" | |
| stylesheet | Yes | Theme directory slug |