browser_get_html
Retrieve the HTML source of a full page or a specific element using a browser session ID. Use it to extract or inspect rendered webpage content after navigation.
Instructions
Get the HTML source of an element or the full page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "browser_get_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector of the element (omit for full page HTML) | |
| session_id | Yes | Session ID returned by browser_navigate |