dom_get_html
Retrieve the inner or outer HTML of the first element matching a selector, capped at a byte limit, to uncover page structure beyond what DOM queries reveal.
Instructions
Get the inner or outer HTML of the first element matching a selector, truncated to a byte budget. Useful for understanding structure you cannot infer from dom_query alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | 'main' (default), or a substring of a frame's origin/name. | main |
| inner | No | innerHTML instead of outerHTML. | |
| selector | Yes | CSS selector. | |
| max_bytes | No | Truncate beyond this many characters. |