Reset Theme Template
Stages a return to the theme's own version of a template that was customised in the Site Editor, as the Site Editor's "Reset" does. Staged in the draft; nothing changes until the draft is published, and the customisation is backed up then.
Also known as: revert template, undo template changes, restore default template.
| Property | Value |
|---|---|
| Ability slug | mosmcp/theme-template-reset |
| Wire tool name | mosmcp__theme-template-reset |
| Category | Theme: Templates and Styles (mosmcp-theme-blocks) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_theme_options |
| Minimum default role | Administrator (Shop manager too when WooCommerce is active) |
| Annotations | readOnly: false · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| slug | string | Yes | — | Template slug. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| staged | boolean | Yes | |
| target | string | ||
| change | string | ||
| draft | object | Yes | |
| draft.exists | boolean | ||
| draft.change_count | integer | ||
| draft.templates | string[] | ||
| draft.template_parts | string[] | ||
| draft.global_styles | string | ||
| draft.patterns | string[] | ||
| draft.files | string[] | ||
| draft.site_identity | string[] | Pending logo and site icon changes. | |
| draft.custom_css | string[] | Pending change to the Customizer's Additional CSS. A block theme's Additional CSS is part of global styles. | |
| draft.theme_settings | string[] | Pending theme (Customizer) settings. | |
| draft.created | string | ||
| draft.updated | string | ||
| draft.preview_ready | boolean | ||
| next_step | string | ||
| notes | string[] |
Example
Sample prompt
Undo my Site Editor changes to the single post template and go back to the theme's original.
Example request (json)
{
"jsonrpc": "2.0",
"id": 295,
"method": "tools/call",
"params": {
"name": "mosmcp__theme-template-reset",
"arguments": {
"input": {
"slug": "single"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 295,
"result": {
"isError": false,
"structuredContent": {
"staged": true,
"target": "the template \"single\"",
"change": "reset to theme version",
"draft": {
"exists": true,
"change_count": 1,
"templates": [
"single (reset)"
],
"template_parts": [],
"global_styles": "",
"patterns": [],
"files": [],
"created": "2026-09-29 10:12:04",
"updated": "2026-09-29 10:14:37",
"preview_ready": true
},
"next_step": "Nothing has changed on the live site yet. Preview the draft with mosmcp/theme-draft-preview, then publish it with mosmcp/theme-draft-publish.",
"notes": []
}
}
}
Edge cases / errors
- Template created on this site or by a plugin (no theme version) -> refused with mosmcp_template_no_theme_version, since resetting would delete it.
- Already the theme's own version with no pending change -> refused with mosmcp_template_already_default.
- Already the theme's version live but with a pending draft edit -> the pending change is simply dropped (change "discarded pending change").
- Staged only; the customisation is backed up and replaced when the draft is published.
| << Previous | Next >> |
|---|---|
| Reset Global Styles | Reset Theme Template Part |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.