html
Extract an element's outer markup from a webview using a CSS selector or snapshot reference to inspect, test, or scrape page content.
Instructions
outerHTML of an element.
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": "html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ref from snapshot, e.g. e3 | |
| tab | No | tab id, defaults to current | |
| selector | No | CSS selector | |
| request_timeout | No | Outer page request deadline in milliseconds; defaults to at least 30000 |