wp_activate_theme
Switch the active WordPress theme to any installed theme by providing its slug/directory name. It identifies and activates the target theme through the site's signed REST API.
Instructions
Switch the active WordPress theme. Provide the theme slug (directory name).
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": {
"slug": "<slug>"
},
"name": "wp_activate_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Theme slug/directory name (e.g. "twentytwentyfour", "astra") |