browser.get_html
Read a web page's full serialized DOM or, with text_only=true, its visible text. Returns content in chunks up to max_chars from a given offset, so paginated reads handle long pages.
Instructions
Read the current page: its serialized DOM (the whole document, not just the viewport), or with text_only=true its visible text — the cheapest way to read a page's content. Returns up to max_chars (default 20,000) from offset; when truncated is true, call again with offset=next_offset for the rest. On Chrome's error page for a navigation the pre-request gate stopped, blocked_navigation says what was stopped and why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Character to start from. A result with truncated=true gives the next_offset to continue from. | |
| max_chars | No | Most characters to return. | |
| text_only | No | Return the page's visible text instead of HTML: line breaks kept, table cells tab-separated. | |
| session_id | No | Target session id, from browser.create_session or browser.list_sessions. Optional when exactly one session is live; observe and act tools create one when none is. |