check_color_contrast
Evaluate text color contrast on web pages against WCAG AA or AAA levels to identify accessibility failures.
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) |