enforce_rules
Audit HTML or framework markup against indexed Basecoat UI technical constraints and retrieve matching rules by ID, category, environment, or query.
Instructions
[STAGE 2: RULES & RHYTHM] Alias of basecoat_rules_enforcer. Retrieve indexed technical implementation constraints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule ID or component ID to inspect. | |
| code | No | HTML/markup snippet to audit against the indexed technical constraints. | |
| html | No | Alternative alias for the code parameter to audit against constraints. | |
| name | No | Rule or component name alias. | |
| query | No | Search query to match against rule IDs, titles, forbidden patterns, or required syntax. | |
| category | No | Filter rules by technical domain: "tailwind-v4", "fsm-contracts", "tokens", "semantic-html", "dashboard-patterns", or "all". | |
| componentId | No | Component ID alias to filter relevant rules. | |
| environment | No | Target output environment: "html", "astro", "react", "vue", or "svelte". Defaults to "html". |