Get Element Properties
get_element_propertiesRetrieve accessibility properties and generate multi-framework test selectors for web elements using CSS selectors to support testing and accessibility audits.
Instructions
Given a CSS selector, returns the element's full accessibility properties and multi-framework test selectors (Playwright, Selenium, Cypress, WebdriverIO). Selectors are prioritized: data-testid > stable id > ARIA role > semantic CSS.
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": {
"selector": "<selector>"
},
"name": "get_element_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector to identify the element (e.g. "input[type=search]", "#submit-btn"). | |
| includeHtml | No | Include the outer HTML of the element. Default: false |