wp_install_plugin
Install a WordPress plugin from the official repository by its slug, with optional immediate activation.
Instructions
Install a plugin from the WordPress.org repository by its slug. Optionally activate it immediately after installation.
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_install_plugin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Plugin slug from WordPress.org (e.g. "woocommerce", "yoast-seo") | |
| activate | No | Activate the plugin after installation (default: false) |