Install a theme
wp_install_themeDownload and install a theme from the WordPress.org directory by its slug; the theme is not activated. Returns installed, stylesheet (the slug) and the version WordPress.org reported. Needs install_themes; refused when DISALLOW_FILE_MODS is set. No undo point is recorded. A theme whose folder exists already is not replaced; the answer is WordPress's error. Themes from a ZIP are installed with wp_install_theme_zip, and switching to a theme is wp_activate_theme. Forwarded by AlphaBridge Connect to the one site this connection reaches.
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": {
"slug": "<slug>"
},
"name": "wp_install_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Theme slug from its wordpress.org address, e.g. "twentytwentyfive". Lower-cased; characters other than a-z, 0-9, "-" and "_" are dropped. |