describe_shadow
Retrieve a nested shadow-DOM tree as JSON to debug hidden controls. Identifies tag, id, role, type, and children in both light and shadow DOM.
Instructions
Dump a custom element's nested shadow-DOM tree for debugging.
Returns a condensed JSON tree - each node has ``tag``, ``id``,
``role``, ``type``, ``text``, a ``light`` array of light-DOM
children and a ``shadow`` array for the element's shadowRoot
children (when open). Use this when ``find_buttons`` /
``find_inputs`` aren't surfacing a control you can see on the
page; the result tells you the exact nested-host path so you
can target ``click_shadow`` or chain custom queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| max_depth | No |