v1.20.0 — schema-in-error widget-type suggestions
Schema-in-error widget-type suggestions (P1.1, first slice)
When a tool is given a widget type that doesn't exist, the error now carries the nearest valid widget type names inline, so an agent that used a wrong name self-corrects in a single round trip (Novamira's single-roundtrip correction contract) instead of guessing or making a second discovery call.
elementor-mcp/add-widgetwith an unknownwidget_type→invalid_widget_typewhosedataincludessuggestions(ranked exact → substring → smallest edit distance) and aschema_hintpointing atget-widget-schema.elementor-mcp/get-widget-schema(the primary discovery tool) andSchema_Generator::generate()return the samesuggestionsin theirwidget_not_founderrordata.- New
Elementor_MCP_Schema_Generator::suggest_types( $bad, $limit = 6 ).
Scope: this covers the wrong-widget-name mistake (the most common one). Attaching the full compact control schema to bad-settings rejections — which for Elementor 4 atomic widgets surface as save_rejected — needs an atomic prop-schema extractor and is the next slice. (The settings validator is deliberately advisory/non-fatal, so there's no settings-rejection path to enrich for legacy widgets.)
Full suite 683 green; +7 SchemaSuggestionsTest cases. Converged in 2 Codex rounds.