Reset Global Styles
Stages removing every global-style change made on this site, so the theme's own colours and typography apply again. Staged in the draft; nothing changes until it is published, and the previous styles are backed up then.
| Property | Value |
|---|---|
| Ability slug | mosmcp/theme-styles-reset |
| Wire tool name | mosmcp__theme-styles-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
Takes no input. Send "input": {} (or omit input).
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
Remove all my custom colour and font changes and go back to the theme's default look.
Example request (json)
{
"jsonrpc": "2.0",
"id": 294,
"method": "tools/call",
"params": {
"name": "mosmcp__theme-styles-reset",
"arguments": {
"input": {}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 294,
"result": {
"isError": false,
"structuredContent": {
"staged": true,
"target": "the global styles",
"change": "reset to theme styles",
"draft": {
"exists": true,
"change_count": 1,
"templates": [],
"template_parts": [],
"global_styles": "back to the theme's own 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
- Site has no global-style overrides and nothing pending -> refused with mosmcp_styles_already_default.
- No live overrides but a style change is pending in the draft -> that pending change is dropped (change "discarded pending change").
- Active theme has no theme.json -> refused with mosmcp_no_global_styles (edit style.css via the theme-file abilities instead).
| << Previous | Next >> |
|---|---|
| Replace Text in a Template | Reset Theme Template |
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.