get_dom_snapshot
Retrieve outerHTML from an Electron renderer page or a specific element via CSS selector, with configurable truncation for performance.
Instructions
Get the outerHTML of a renderer page (or of a specific element via selector). Truncated to maxLength characters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Page id from list_pages. | |
| selector | No | CSS selector; defaults to the whole document. | |
| maxLength | No | Maximum characters to return (default 50000). | |
| sessionId | Yes | Session id returned by launch_app. |