get_html
Fetch the HTML of a page or element, using a CSS selector to narrow results and avoid output caps. Password field values are automatically 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: active 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) |