check_composition
Validate cross-component composition in HTML to catch tab/panel mismatches, broken cross-references, and empty containers. Supports compound components like tab-groups, selects, and accordions.
Instructions
Validates cross-component composition patterns — catches tab/panel count mismatches, unlinked cross-references (tab panel="x" without matching panel name="x"), and empty containers (select with no options). Detects component pairs automatically from CEM slot descriptions. Run this on any HTML using compound components like tab-groups, selects, accordions, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| htmlText | Yes | The HTML code containing compound component patterns to validate. |