mainwp_themes_activate
Activate a theme on a WordPress site by specifying the site ID or domain and theme slug. Optionally simulate the operation with dry run mode.
Instructions
Activate a theme on a WordPress 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>",
"theme": "<theme>"
},
"name": "mainwp_themes_activate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site ID (number) or domain name (e.g., "1" or "pavinglist.com") | |
| theme | Yes | Theme slug to activate | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) |