browser.get_html
Retrieve a page's full HTML or visible text, with offset-based pagination to fetch large documents without truncation, enabling content extraction and analysis.
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.
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. |