Get Active Theme
Returns full detail about the theme this site is currently running: version, author, parent theme, whether it is a block theme, the page templates it offers, and the features it supports. Read-only. Useful before editing a page, because the available page templates come from the active theme.
Also known as: current theme, which theme am I using, active design.
| Property | Value |
|---|---|
| Ability slug | mosmcp/theme-get-active |
| Wire tool name | mosmcp__theme-get-active |
| Category | Themes (mosmcp-themes) |
| 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
Takes no input. Send "input": {} (or omit input).
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| stylesheet | string | Yes | Theme folder name. |
| template | string | Folder of the theme providing the templates. Differs from stylesheet only for a child theme. | |
| name | string | Yes | |
| version | string | ||
| author | string | ||
| description | string | ||
| theme_uri | string | ||
| status | string | Yes | Either "active" or "inactive". |
| is_child | boolean | ||
| parent | object | ||
| parent.stylesheet | string | ||
| parent.name | string | ||
| parent.version | string | ||
| is_block_theme | boolean | True for a block (full site editing) theme, false for a classic theme. | |
| requires_wp | string | ||
| requires_php | string | ||
| tags | string[] | ||
| screenshot | string | ||
| update_available | boolean | ||
| new_version | string | ||
| page_templates | object[] | Page templates this theme offers. Only populated for the active theme, because WordPress reads them from the theme in use. | |
| page_templates[].slug | string | ||
| page_templates[].label | string | ||
| supports | string[] | Theme features the active theme declares support for. Only populated for the active theme. | |
| notes | string[] | Anything about this theme the caller should know before acting on it. |
Example
Sample prompt
Which theme is my site using, and what page templates does it offer?
Example request (json)
{
"jsonrpc": "2.0",
"id": 233,
"method": "tools/call",
"params": {
"name": "mosmcp__theme-get-active",
"arguments": {
"input": {}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 233,
"result": {
"isError": false,
"structuredContent": {
"stylesheet": "twentytwentyfive",
"template": "twentytwentyfive",
"name": "Twenty Twenty-Five",
"version": "1.2",
"status": "active",
"is_child": false,
"parent": {},
"is_block_theme": true,
"update_available": false,
"new_version": "",
"page_templates": [
{
"slug": "default",
"label": "Default template"
},
{
"slug": "page-no-title",
"label": "Page No Title"
}
],
"supports": [
"post-thumbnails",
"editor-styles",
"block-templates"
],
"notes": []
}
}
}
Edge cases / errors
- Child theme whose parent is not installed → a note warns the site cannot render it correctly.
- WordPress reports a problem with the theme → the error text is added to notes.
- page_templates always starts with the "default" entry.
| << Previous | Next >> |
|---|---|
| Update Plugin | Get Theme by Slug |
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.