HTML Duplicate ID and ARIA Reference Checker
html-duplicate-id-and-aria-reference-checkerDevelopers need to catch duplicate IDs and broken ARIA relationships that silently break accessibility and scripting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html_snippet": "<html_snippet>",
"check_duplicate_ids": "<check_duplicate_ids>",
"check_aria_references": "<check_aria_references>",
"show_element_paths": "<show_element_paths>"
},
"name": "html-duplicate-id-and-aria-reference-checker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html_snippet | Yes | Accept raw HTML or DOM snippet text. Must be non-empty after trimming. Parse as HTML fragment in document order. Script execution is never allowed. | |
| show_element_paths | Yes | When true, include stable element paths for duplicate and broken-reference findings. When false, path fields are omitted from per-finding detail but summary counts still compute. | |
| check_duplicate_ids | Yes | When true, report every duplicated id value with all matching element locations. When false, duplicate-id analysis is skipped and duplicate outputs are empty. | |
| check_aria_references | Yes | When true, scan ARIA ID reference attributes and validate each referenced id against the parsed fragment. When false, aria-reference analysis is skipped and broken-reference outputs are empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| validation_status | No | ||
| duplicate_id_groups | No | ||
| element_path_report | No | ||
| missing_target_list | No | ||
| broken_aria_references | No |