test_html_string
Analyze HTML content for accessibility compliance with WCAG standards using the Axe-core API. Input HTML strings and optional tags to test for specific accessibility issues.
Instructions
Test an HTML string for accessibility issues
Input Schema
Name | Required | Description | Default |
---|---|---|---|
html | Yes | HTML content to test | |
tags | No | Optional array of accessibility tags to test (e.g., "wcag2a", "wcag2aa", "wcag21a") |
Input Schema (JSON Schema)
{
"properties": {
"html": {
"description": "HTML content to test",
"type": "string"
},
"tags": {
"default": [
"wcag2aa"
],
"description": "Optional array of accessibility tags to test (e.g., \"wcag2a\", \"wcag2aa\", \"wcag21a\")",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"html"
],
"type": "object"
}