Browser Page Stats
browser_statsCheck DOM node count, HTML length, and visible-text size before dumping a full page. Decide if browser_get_dom is safe or if you should scope it with a selector.
Instructions
Cheap pre-check for page size and complexity: DOM node count, approximate HTML length, and approximate visible-text length. Call this BEFORE browser_get_dom on an unfamiliar page to decide whether a full dump is safe, or whether you should scope it (selector/maxLength) or use browser_snapshot/browser_extract instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. |