wp_install_theme
Install a WordPress theme from the official directory by slug, with optional activation to apply it right away.
Instructions
Install a theme from WordPress.org by its slug. Optionally activate it after installation.
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 (e.g. "astra", "flavor") | |
| activate | No | Activate after install |