apply_theme_and_accessibility_rules
Apply a colorblind-safe theme, auto-generate missing alt text for visuals, and re-audit WCAG compliance to make Power BI reports accessible.
Instructions
Apply a colorblind-safe theme, backfill visual alt text, and re-audit WCAG.
Use this tool when the user asks to:
Make a report accessible and WCAG 2.1 compliant.
Apply a colorblind-safe palette (e.g. Okabe-Ito, ColorBrewer).
Automatically generate informative alt text for visuals lacking descriptions.
Args: pbip_path: Path to the .pbip directory. palette: Colorblind-safe palette name ("okabe_ito", "colorbrewer"). auto_backfill_alt_text: Whether to generate missing alt text on visuals. alt_text_template: Format template for generated alt text.
Returns: Dict with updated WCAG score, modified visual count, and theme update details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| palette | No | okabe_ito | |
| pbip_path | Yes | ||
| alt_text_template | No | {visual_type} visualizing measure {first_measure} | |
| auto_backfill_alt_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||