get_html
Retrieve HTML from a Chrome page or element, using a CSS selector or ref to limit output; results are byte-capped at tag boundaries and password values are blanked.
Instructions
Get HTML of the page or an element. Output is capped (see maxBytes) and cut at a tag boundary; narrow it with selector rather than raising the cap when you can. Password field values are always blanked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from a snapshot | |
| outer | No | ||
| tabId | No | Tab id (default: agent's tab) | |
| frameId | No | Frame id from frames_list | |
| maxBytes | No | Cap returned content at N UTF-8 bytes (default 262144); the full payload still lands in results/ | |
| selector | No | CSS selector (or pass ref) | |
| allFrames | No | Act on the first match in ANY frame (the element may be in an iframe) |