获取 DOM 样式快照
get_dom_snapshotInspect any element's DOM subtree as a text snapshot with geometry, computed styles, and text, including shadow DOM, to verify colors, layout, and positioning without a screenshot.
Instructions
对指定元素的子树生成「虚拟截图」:每个可见节点一行,含几何(rect)、关键 computed style(颜色/背景/字号/边框/圆角/阴影/透明度/z-index/溢出)、文本,穿 shadow DOM。纯文本、无需任何授权,是验证颜色、布局、定位的首选;需要真实渲染像素(canvas 内容、图片、遮挡观感)时再用 get_screenshot。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | 操作说明:展示给页面用户的自然语言描述(用户会在页面气泡的操作记录里看到),用用户的语言填写,建议始终提供 | |
| depth | No | 最大递归深度,默认 4,上限 8 | |
| pageId | No | 目标页面 id(单页时可省略) | |
| maxNodes | No | 最多输出的节点数,默认 60,上限 300 | |
| selector | Yes | CSS 选择器(深度查询,穿 shadow DOM),对其子树生成快照 |