mcp-easy-ai__wp_list_widgets
Lists the widgets placed in a classic theme's widget areas, with their settings. Optional: sidebar (a sidebar id from wp_list_sidebars, e.g. "sidebar-1" or "wp_inactive_widgets") to list one area only. Returns { widgets: [{ id, id_base, sidebar, position, settings_editable, settings }], total }, grouped by sidebar in display order; position is the 0-based index inside its sidebar (the value wp_create_widget / wp_update_widget accept). settings is the widget's settings object (e.g. { title, content } for a custom_html widget, { content } for a block widget); it is null and settings_editable is false for a legacy widget type without a REST representation — those are read-only over MCP. Use wp_get_widget for one widget with its rendered HTML. Refused when the theme has no widget areas (a block theme): use wp_list_templates instead. Requires the edit_theme_options capability, the same as Appearance > Widgets. Through Royally: its server marks it read-only, so it runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sidebar | No | Only list widgets in this sidebar (an id from wp_list_sidebars). Omit to list every area, including wp_inactive_widgets. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) |