validate_page
Validate a landing page source against schema and semantic rules, auto-fix layout defects, and return errors and warnings.
Instructions
Validates a page source against the schema + semantic rules (unique ids, dangling event targets, children only on containers, missing field_name, top-level types) plus form-data bindings (duplicate field_name within one form, dangling option-event promoId / connectedSurvey / connectedForm / set_field_value targets). FIRST auto-fixes the layout defects that can be resolved deterministically (off-canvas boxes pulled on-canvas; elements below wrapped text pushed down to clear the spill — the same corrections create_page/add_section apply on save) and reports them in auto_fixed. Then returns errors (blocking — fix before persisting) and warnings (visible design defects — fix these too and re-validate to an empty list; only a demonstrably false positive may remain).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | The page source object { page:[...], settings:{} } OR a JSON string of it. |