Check token drift
check_token_driftDetect hardcoded hex colors and px values in a code snippet, then suggests the matching or nearest design token to prevent drift.
Instructions
Does this code drift from the token system? Scans a snippet for hardcoded hex colors and px values and suggests the matching or nearest token.
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": {
"snippet": "<snippet>"
},
"name": "check_token_drift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| snippet | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| findings | Yes |