browser_html
Retrieve page HTML or the outerHTML of the first element matching a CSS selector, capped by maxChars, to inspect markup or extract specific elements.
Instructions
Return the page HTML (or the outerHTML of the first element matching a CSS selector). Capped at maxChars (default 200000). Use browser_text for human-readable text, browser_elements for a clickable list.
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_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxChars | No | Cap on returned HTML (default 200000) | |
| selector | No | Optional CSS selector |