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.
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": "describe_shadow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| max_depth | No |