get-element-html
Retrieve the HTML content of any page element by CSS selector. Control depth to get text only, limited markup, or full HTML, and choose inner or outer HTML.
Instructions
Retrieves the HTML content of a specific element and its children with optional depth control
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Control HTML depth limit: -1 = unlimited (default), 0 = text only, 1+ = limited depth with deeper elements shown as <!-- omitted --> | |
| selector | Yes | CSS selector of the element to inspect | |
| includeOuter | No | If true, includes the selected element's outer HTML; otherwise returns only inner HTML (default: false) |