find_shadow_element
Locate elements inside a shadow DOM by providing a host CSS selector and an inner shadow selector, enabling automated browser tests to interact with shadow-root content.
Instructions
Find an element inside a shadow DOM. Provide the host element selector and then the selector for the element inside the shadow root.
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": {
"host_selector": "<host_selector>",
"shadow_selector": "<shadow_selector>"
},
"name": "find_shadow_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| host_selector | Yes | CSS selector of the shadow host element | |
| shadow_selector | Yes | CSS selector inside the shadow root |