List widgets
wp_get_widgetsList the site's widgets with their settings: by default those of all widget areas, inactive widgets included; with sidebar, only those of one area. Returns widgets: [{id, id_base, number, name, sidebar, settings}]; id is e.g. "text-2", sidebar the area id (empty when the widget is in none). A setting whose key looks like a credential (an API key, token, secret or password) is left out and named in hidden_keys. Needs edit_theme_options. Read-only; wp_list_sidebars lists the areas themselves. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_get_widgets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sidebar | No | Optional widget area id from wp_list_sidebars, e.g. "sidebar-1" or "wp_inactive_widgets". When omitted, widgets of all areas are listed. |