Reset Theme Template Part
Stages a return to the theme's own version of a template part that was customised, such as a header or footer edited in the Site Editor. Staged in the draft; nothing changes until the draft is published.
| Property | Value |
|---|---|
| Ability slug | mosmcp/theme-part-reset |
| Wire tool name | mosmcp__theme-part-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 part 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
Put my header back to how the theme originally designed it.
Example request (json)
{
"jsonrpc": "2.0",
"id": 296,
"method": "tools/call",
"params": {
"name": "mosmcp__theme-part-reset",
"arguments": {
"input": {
"slug": "header"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 296,
"result": {
"isError": false,
"structuredContent": {
"staged": true,
"target": "the template part \"header\"",
"change": "reset to theme version",
"draft": {
"exists": true,
"change_count": 1,
"templates": [],
"template_parts": [
"header (reset)"
],
"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
- Part created on this site or by a plugin -> refused with mosmcp_template_no_theme_version.
- Part is already the theme's version and nothing is pending -> refused with mosmcp_template_already_default.
- Not customised live but a draft edit is pending -> the pending edit is discarded instead (change "discarded pending change").
| << Previous | Next >> |
|---|---|
| Reset Theme Template | Save Pattern |
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.