wp_plugin_install
Install WordPress plugins from wordpress.org repository directly via WP-CLI. Specify plugin slug and optionally activate after installation.
Instructions
Install a plugin from wordpress.org
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_plugin_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Plugin slug (e.g. 'woocommerce', 'advanced-custom-fields') | |
| activate | No | Activate after install |