mainwp_themes_install
Install a WordPress theme from WordPress.org on a specified site by providing the site identifier and theme slug.
Instructions
Install a theme from WordPress.org on a site
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>",
"slug": "<slug>"
},
"name": "mainwp_themes_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site ID (number) or domain name (e.g., "1" or "pavinglist.com") | |
| slug | Yes | Theme slug from WordPress.org (e.g., "flavor") | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) |