Get HTML
get_htmlRetrieve HTML markup of a page or element using a CSS selector or text match. Use when structure and attributes are needed, with nth support for choosing among matches.
Instructions
Get the HTML of a page or element. Use when you need markup, attributes or structure rather than text. Returns one element only: it reports how many matched and takes nth to pick a different one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to return when several exist, 0-based | |
| outer | No | Include the element tag itself | |
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab, falling back to whatever tab is active in Arc. | |
| selector | No | CSS selector, or "text=Some label" to match on visible text (substring, exact matches ranked first) | |
| max_chars | No | Truncate at this length |