check_color_contrast
Check WCAG color contrast ratios for text elements on the page, sampling unique styles and reporting failures against AA or AAA thresholds to ensure accessibility.
Instructions
Check WCAG color contrast ratios for text elements on the page. Samples one element per unique text style (color/background/size), so repeated nav items don't exhaust the budget — 'checked' counts style groups, 'elements_represented' the elements they cover. Reports failures against AA or AAA thresholds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | WCAG level to check against (default: AA) | |
| selector | No | CSS selector to check (default: all text elements) | |
| session_id | Yes | Session ID | |
| max_results | No | Max elements to check (default: 50) |