Validate Token Usage
validate_token_usageScan CSS or component code for hard-coded values and flag those that should be replaced with design tokens to ensure consistency.
Instructions
Validate code for hard-coded values that should use design tokens
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": {
"code": "<code>"
},
"name": "validate_token_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | CSS or component code to validate |