click_shadow
Click the deepest interactive element inside a custom element's shadow DOM. Use when a button, radio, or checkbox is wrapped in one or more open shadow roots.
Instructions
Click the deepest interactive element inside a custom element's shadow DOM.
Use when a page wraps a real ``<button>`` / ``[role="radio"]`` /
``[role="checkbox"]`` in one or more open shadow roots
(``<nes-button>``, ``<sds-radio>``, ``<lion-input>`` and friends).
``selector`` should match the outer custom element in the light
DOM; this tool then recurses through every nested ``shadowRoot``
up to ``max_depth`` levels and dispatches a composed click
sequence on the first interactive descendant it finds.
Returns an error when the host isn't found or no inner interactive
element lives inside its shadow tree.
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": "click_shadow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |