validate_usage
Check HTML usage of a web component against its spec. Detects unknown attributes, deprecated properties, invalid slot names, and enum mismatches, providing pass/fail results and suggestions.
Instructions
Validates proposed HTML usage of a web component against its CEM spec. Checks for unknown attributes, deprecated properties, invalid slot names, and enum type mismatches. Returns a pass/fail result with specific issues and "did you mean?" suggestions for typos.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| tagName | Yes | The custom element tag name (e.g. "my-button"). | |
| html | Yes | The HTML snippet to validate (e.g. "<my-button variant=\"primary\">Click</my-button>"). |