wp_plugin_update
Update one or more WordPress plugins to the latest version with wp-cli. Requires a confirmation token for safety.
Instructions
Update one or more plugins on a site to their latest version. Requires confirmation token (uses wp-cli).
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": {
"plugins": "<plugins>"
},
"name": "wp_plugin_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | ||
| plugins | Yes | Plugin slugs to update, e.g. ['elementor', 'elementor-pro']. Use 'all' for everything outdated. | |
| confirmation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| plugins | Yes | ||
| command | No | ||
| stdout | No | ||
| stderr | No | ||
| exit_code | No | ||
| confirmation_token | No | ||
| expires_in_seconds | No |