mainwp_updates_apply
Apply WordPress core, plugin, or theme updates to a site, with optional dry-run mode to simulate without making changes.
Instructions
Apply updates to a WordPress site (supports dry-run mode)
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": {
"site": "<site>",
"type": "<type>"
},
"name": "mainwp_updates_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site ID (number) or domain name (e.g., "1" or "pavinglist.com") | |
| type | Yes | Type of updates to apply | |
| items | No | Specific plugin/theme slugs to update (comma-separated). Omit to update all. | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) |