Manage a WordPress plugin
wp_pluginInstall (from the WordPress.org directory; activate true switches it on too), activate, deactivate or update one plugin of a live WordPress site by its slug (the folder name: lowercase letters, digits and hyphens). Runs on the call. Deleting a plugin is not offered here: the person does it in wp-admin. The platform helper hh-migrate is not touched. Refusals: invalid-argument, not-a-target, not-live, migration-open, deploy-open, busy, failed (with WP-CLI's line).
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_plugin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | the plugin or theme folder name, for example contact-form-7 | |
| action | Yes | ||
| activate | No | install only: switch the plugin on after installing it | |
| serviceId | Yes | the id of a service on this account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |