browser_get_html
Get the HTML source of the current page or a specific element.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Session ID from browser_navigate |
selector | string | No | CSS selector. Omit for full page HTML. |
Example
Get the HTML of the navigation barNotes
- Returns raw HTML including tags, attributes, and nested elements
- Useful for debugging DOM structure, checking attributes, or inspecting components
- Use
browser_get_textif you only need the visible text