Manage a WordPress theme
wp_themeInstall (from the WordPress.org directory), activate or update one theme of a live WordPress site by its slug (the folder name). Runs on the call; switching away from a theme leaves it installed. Refusals: invalid-argument, not-live, migration-open, deploy-open, busy, failed.
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": {
"serviceId": "<serviceId>",
"slug": "<slug>",
"action": "<action>"
},
"name": "wp_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | the plugin or theme folder name, for example contact-form-7 | |
| action | Yes | ||
| serviceId | Yes | the id of a service on this account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |