List Patterns


Lists block patterns: the ready-made layouts registered by the theme, WordPress and plugins, and the patterns saved on this site (synced ones update everywhere they are used). Read-only.

Also known as: reusable blocks, synced patterns, block patterns, section templates.

Property Value
Ability slug mosmcp/theme-pattern-list
Wire tool name mosmcp__theme-pattern-list
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: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
search string — Optional. Only patterns whose title, name or category contains this.
source string (one of all, registered, synced) all Which patterns to list.
per_page integer (1–100) 50 Maximum patterns to return.
offset integer (min 0) — How many to skip, for paging.

 

Output schema

Field Type Required Description
total integer Yes
showing integer
patterns object[] Yes
patterns[].kind string "registered" (read-only) or "saved" (on this site).
patterns[].name string
patterns[].id integer
patterns[].title string
patterns[].categories string[]
patterns[].synced boolean
patterns[].pending string
notes string[]

 

Example

Sample prompt
Show me the synced patterns saved on my site.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 289,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__theme-pattern-list",
    "arguments": {
      "input": {
        "source": "synced",
        "per_page": 20
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 289,
  "result": {
    "isError": false,
    "structuredContent": {
      "total": 1,
      "showing": 1,
      "patterns": [
        {
          "kind": "saved",
          "name": "",
          "id": 311,
          "title": "Newsletter CTA",
          "categories": [
            "call-to-action"
          ],
          "synced": true,
          "pending": ""
        }
      ],
      "notes": [
        "Registered patterns come from the theme, WordPress and plugins and are read-only; insert their content into a page or template. Saved patterns live on this site and can be changed with mosmcp/theme-pattern-save; a synced one updates everywhere it is used."
      ]
    }
  }
}

 

Edge cases / errors

  • source "synced" actually returns all patterns saved on the site (synced and unsynced; synced flag tells them apart), up to 100 saved patterns.
  • New patterns staged in the draft but not yet published appear with pending "create" and id 0.
  • per_page outside 1-100 or negative offset -> rejected by schema validation; use offset to page past the first results.

 


<< Previous Next >>
Get Theme Template Part List Style Variations

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.