match_theme_color
Match a color to a CSS theme variable, using optional usage context and a confidence threshold to identify the intended theme token.
Instructions
Find the closest matching theme variable for a given color
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": {
"color": "<color>",
"themeCSS": "<themeCSS>"
},
"name": "match_theme_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color to match (hex, rgb, hsl) | |
| context | No | Usage context for better matching | |
| themeCSS | Yes | CSS containing theme variables | |
| minConfidence | No | Minimum confidence threshold (0-100) |