List Widgets
Lists the widgets in one widget area, or in all of them, in display order: widget ID (such as "block-3" or "text-2"), area, position (0 is the top), type, title, and a one-line summary of what it shows. Block widgets are summarised by their block types and text, classic widgets by their key settings, and values that look like passwords, API keys or tokens are never shown. Read-only. Also lists the inactive-widgets bin, and widgets left in areas the current theme no longer registers, each marked so it is clear they are not on the site. Next: mosmcp/widget-get for one widget's full settings, mosmcp/widget-update or mosmcp/widget-move to change it.
Also known as: sidebar widgets, footer widgets, list widgets, what is in my sidebar, what widgets are on my site.
| Property | Value |
|---|---|
| Ability slug | mosmcp/widget-list |
| Wire tool name | mosmcp__widget-list |
| 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 |
|---|---|---|---|---|
| area | string | — | Optional. Only widgets in this area: its ID ("sidebar-1"), its name ("Footer"), or "wp_inactive_widgets" for the inactive bin. Omit for every area. | |
| type | string | — | Optional. Only widgets of this type, by id_base, for example "block", "text" or "custom_html". | |
| include_inactive | boolean | true |
When listing every area, whether to include the inactive-widgets bin. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| widgets | object[] | Yes | |
| widgets[].widget_id | string | Yes | The widget ID, for example "block-3" or "text-2". |
| widgets[].id_base | string | Yes | The widget type, for example "block", "text" or "custom_html". |
| widgets[].type_name | string | ||
| widgets[].area | string | Yes | Area ID the widget is in. |
| widgets[].area_name | string | ||
| widgets[].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. | |
| widgets[].position | integer | Yes | 0-based position in its area; 0 is the top. |
| widgets[].title | string | ||
| widgets[].summary | string | One line describing what the widget shows. Secrets are never included. | |
| widgets[].is_block_widget | boolean | ||
| widgets[].blocks | string[] | Block types in a block widget. | |
| widgets[].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. | |
| total | integer | Yes | |
| area | string | The area listed, or empty when every area was listed. | |
| has_widget_areas | boolean | Yes | |
| uses_block_widgets | boolean | ||
| is_block_theme | boolean | ||
| explanation | string | Why there are no widget areas and what to use instead. Empty when the theme has widget areas. | |
| use_instead | string[] | ||
| notes | string[] |
| << Previous | Next >> |
|---|---|
| List Widget Types | Move Widget |
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.