test_accessibility
Test website accessibility using Playwright and axe-core to identify WCAG compliance violations and generate detailed reports with remediation guidance.
Instructions
Run accessibility tests on a website using Playwright and axe-core against WCAG standards
Input Schema
Name | Required | Description | Default |
---|---|---|---|
browser | No | Browser engine to use for testing | chromium |
includeScreenshot | No | Whether to capture a screenshot of the page | |
url | Yes | The URL of the website to test for accessibility | |
wcagLevel | No | WCAG compliance level to test against | AA |
wcagVersion | No | WCAG version to test against | 2.1 |
Input Schema (JSON Schema)
{
"properties": {
"browser": {
"default": "chromium",
"description": "Browser engine to use for testing",
"enum": [
"chromium",
"firefox",
"webkit"
],
"type": "string"
},
"includeScreenshot": {
"default": false,
"description": "Whether to capture a screenshot of the page",
"type": "boolean"
},
"url": {
"description": "The URL of the website to test for accessibility",
"format": "uri",
"type": "string"
},
"wcagLevel": {
"default": "AA",
"description": "WCAG compliance level to test against",
"enum": [
"A",
"AA",
"AAA"
],
"type": "string"
},
"wcagVersion": {
"default": "2.1",
"description": "WCAG version to test against",
"enum": [
"2.1",
"2.2"
],
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}