抓取页面 DOM
page_domRetrieve the current page's DOM as raw HTML, an indented outline for LLMs, or both, with automatic truncation of oversized HTML to keep results readable.
Instructions
获取当前页面的 DOM:可返回原始 HTML、适合 LLM 阅读的缩进结构大纲,或两者。默认 both,并自动截断超长 HTML。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 输出内容,默认 both | |
| depth | No | 大纲层级深度,默认 4 | |
| maxNodes | No | 大纲最多节点数,默认 800 | |
| skipHidden | No | 是否跳过 script/style/noscript,默认 true | |
| maxHtmlChars | No | HTML 最大字符数,默认 50000 | |
| maxTextLength | No | 大纲里文本节点的最大长度,默认 60 |