Publish a draft theme
publish_draft_themePromote a draft theme to your live site. The current active theme is backed up first, so you can revert the change if needed.
Instructions
Promote a draft theme to the live site. The currently active theme is backed up first, so the change is reversible. This is the one step that changes what visitors see — everything before it is sandboxed. Requires confirm: true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "publish_draft_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Draft theme id to publish. Defaults to the most recent draft. | |
| confirm | No | Required — this changes the live site. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |