browser_getHTML
Retrieve the HTML source of the current page or a specific element using a CSS selector. Extract page structure or debug content directly from the browser.
Instructions
获取当前页面的 HTML 源码(或指定元素的 HTML)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_getHTML"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outer | No | 是否包含元素本身的标签,默认 true | |
| selector | No | CSS 选择器,留空则获取整个页面的 outerHTML |