Install WordPress Plugin
wordpress_install_pluginInstall a plugin on a connected WordPress site from a wordpress.org slug (e.g. 'wordpress-seo') or a zip URL, and optionally activate it.
Installing and activating are reported separately: if the files land but activation fails you get the real activation error, not a blanket failure. When a plugin that was NOT already on the site fails to activate, its files are removed again (rolled_back=true) so nothing dead is left behind; pass keep_on_failure=true to keep them for debugging.
Page cache plugins in particular need wp-config.php and wp-content to be writable, and some hosts refuse third-party cache plugins outright through a must-use plugin of their own. Both are host limits no retry will fix — check wordpress_performance first, and if it says install_recommended=false, do not install a cache plugin at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| zip_url | No | ||
| activate | No | ||
| site_url | No | ||
| keep_on_failure | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||