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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |