📸 ScreenshotsMCP

browser_get_html

Get the HTML source of the current page or a specific element.

Parameters

ParameterTypeRequiredDescription
sessionIdstringYesSession ID from browser_navigate
selectorstringNoCSS selector. Omit for full page HTML.

Example

Get the HTML of the navigation bar

Notes

  • Returns raw HTML including tags, attributes, and nested elements
  • Useful for debugging DOM structure, checking attributes, or inspecting components
  • Use browser_get_text if you only need the visible text

On this page