verify_token_inheritance
Audit a web component for token-inheritance defects including helix alias renames, cascade gaps under overlays, and raw color literals where tokens exist. Run before shipping or migrating across major versions.
Instructions
Audit a component for token-related defects across helix R8/R11/R14/R32 alias renames, cascade gaps under dark / high-contrast overlays, and raw color literals where tokens exist. Findings reference defect-corpus classes 01, 02, 03, 14. Use this BEFORE shipping an extending component or migrating across helix major versions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tagName": "<tagName>"
},
"name": "verify_token_inheritance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagName | Yes | Custom element tag name (e.g. "hx-button"). | |
| cssSourcePaths | No | Optional CSS source paths (relative to projectRoot). When provided, the color-literal scan runs across them. Without this, only the CEM-declared cssProperties surface is checked. | |
| overlays | No | Optional pre-computed CSS-prop key sets per theme overlay. Used by the cascade-gap check. | |
| libraryId | No | Optional library ID for multi-library workspaces (resolved by the dispatcher). |