Get Widget
Returns one widget in full: all its settings or, for a block widget, its complete block markup, with its area and position. Settings that look like passwords, API keys or tokens are shown masked; sending the mask back unchanged in mosmcp/widget-update keeps the stored value. Can also return the HTML the widget outputs on the site. Read-only. Read a widget with this before changing it with mosmcp/widget-update.
Also known as: widget settings, widget content, show widget, custom html widget content, text widget content, footer widget text.
| Property | Value |
|---|---|
| Ability slug | mosmcp/widget-get |
| Wire tool name | mosmcp__widget-get |
| Category | Widgets & Sidebars (mosmcp-widgets) |
| 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 |
|---|---|---|---|---|
| widget_id | string | Yes | — | The widget ID, such as "block-3" or "text-2", as mosmcp/widget-list reports it. |
| include_rendered | boolean | false |
Also return the HTML the widget outputs on the site. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| widget_id | string | Yes | The widget ID, for example "block-3" or "text-2". |
| id_base | string | Yes | The widget type, for example "block", "text" or "custom_html". |
| type_name | string | ||
| area | string | Yes | Area ID the widget is in. |
| area_name | string | ||
| area_status | string (one of active, inactive, unregistered) |
"active" when the area is shown on the site, "inactive" for the inactive-widgets bin, "unregistered" for an area the active theme does not register. | |
| position | integer | Yes | 0-based position in its area; 0 is the top. |
| title | string | ||
| summary | string | One line describing what the widget shows. Secrets are never included. | |
| is_block_widget | boolean | ||
| blocks | string[] | Block types in a block widget. | |
| settings_editable | boolean | False when the widget's type is missing or not built with the standard widget API; it can still be moved or deleted. | |
| settings | object | Yes | All the widget's settings, with secret-looking values masked. For a block widget, its content setting holds the block markup. |
| masked_settings | string[] | Names of settings whose values are masked. | |
| block_markup | string | Yes | The block markup of a block widget. Empty for other widgets. |
| rendered_html | string | The widget's front-end HTML, when asked for and the widget is in a shown area. Empty otherwise. | |
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Delete Widget | List Widget Areas |
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.