Apply Style Variation


Stages switching the site to one of the theme's ready-made style variations, as choosing one in the Site Editor does. A whole style replaces the site's current global-style overrides; a colour palette or typography set changes only colours or only fonts. Staged in the draft; preview it before publishing.

Also known as: change theme skin, switch colour scheme, change fonts, apply a look.

Property Value
Ability slug mosmcp/theme-variation-apply
Wire tool name mosmcp__theme-variation-apply
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
title string Yes — Variation title exactly as listed by mosmcp/theme-variation-list.
kind string (one of style, colours, typography) — Optional. Which variation to use when a title appears more than once: style, colours or typography. Defaults to the whole style.

 

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
Switch my site to the theme's Evening style.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 280,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__theme-variation-apply",
    "arguments": {
      "input": {
        "title": "Evening"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 280,
  "result": {
    "isError": false,
    "structuredContent": {
      "staged": true,
      "target": "the \"Evening\" style variation",
      "change": "applied",
      "draft": {
        "exists": true,
        "change_count": 1,
        "templates": [],
        "template_parts": [],
        "global_styles": "the \"Evening\" style",
        "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": [
        "Applying a whole style replaces the site's previous global-style overrides, as it does in the Site Editor."
      ]
    }
  }
}

 

Edge cases / errors

  • No variation with that title (case-insensitive) and kind -> refused with mosmcp_variation_not_found, listing the available variations.
  • Title shared by a style and a palette/typography set without kind -> the whole style is applied, with a note explaining how to pick the other.
  • A whole style replaces all current global-style overrides; a colours or typography set changes only that aspect.
  • Staged only - preview with mosmcp/theme-draft-preview before publishing.

 


<< Previous Next >>
Read REST Route Delete 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.