get_page_content
Extract visible text or HTML from a chosen element or the entire page, optionally including shadow DOM content for full page data.
Instructions
Get the visible text or HTML of an element, or of the whole page. Args: selector: Element to read from. Omit (or pass None) to read the whole page instead of one element. as_html: If True, return HTML instead of visible text. include_shadow_dom: Only applies when reading the whole page as HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_html | No | ||
| selector | No | ||
| include_shadow_dom | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |