Get Widget Schema is a WordPress ability from The Plus Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Widget Schema

Read-only

Returns the full JSON Schema for a widget type's settings, describing all available controls and their types.

Requires the The Plus Addons for Elementor plugin (which registers under the 'tpae' ability category) on WordPress 6.9+, with Elementor active. Every ability requires the current user to have the 'edit_posts' capability (and 'edit_post' for the specific post being modified); abilities that create or edit content also verify Elementor and, where relevant, the target The Plus widget are available. A subset of abilities (theme templates, template conditions, dynamic tags, popups, and some custom-code abilities) only register when Elementor Pro is active, and many widget abilities load only in the free plugin when the Pro add-on is inactive.

What it does

execute_get_widget_schema requires a widget_type input, verifies the widget type is registered via Elementor's widgets_manager, then calls the schema_generator's generate() method to build a JSON Schema representation of the widget's controls, returning the widget_type, its title, and the generated schema, or a WP_Error if the parameter is missing or the widget type is not found.

See it in action

You ask your AI assistant

"What settings/controls does the 'button' widget accept? Give me its schema before I create one."

Inputs

Name Type Required Description
widget_type string Yes The widget type name, e.g. "heading", "button", "image".

Returns

Returns an object with widget_type, title, and schema (a JSON Schema object describing the widget's controls).

Permission

Checks current_user_can('edit_posts') via check_read_permission.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.