get_dom_tree
Retrieve the DOM subtree of a live webpage, starting from a CSS selector or the document root, with configurable depth up to 10 for debugging hierarchy.
Instructions
获取 DOM 子树结构,可按选择器定位根节点,depth 控制层级深度(最大 10)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | 子树深度,默认 3,最大 10 | |
| selector | No | CSS 选择器(可选,不传则从文档根开始) |