get_page_content
Retrieve the content of current browser page in specified format.
Arguments
| Name | Type | Description |
|---|---|---|
tab | string | The ID of the tab to return the contents for. If not provided, the active tab will be used. |
url | string | The URL of the page to get content of. If provided, the browser will create a temporary page and navigate to the given URL, ignoring the tab argument. |
selector | string | An argument for HTMLElement.querySelector(). Specifies the element to retrieve the html for. |
scroller | object | Scroller configuration for cases when the page or element needs to be scrolled to load the full content. If set, the scroll position of the given element will be reset, and then the element will be scrolled while the content is grabbed using the selector. |
format | string | The format in which content should be returned. Can take one of the following values: raw_html, compacted_html, inner_text. Defaults to "compacted_html" if not provided. |
wait | number | How much time to wait in seconds if there are no elements found by the selector. Defaults to 2 seconds. |
prettify | boolean | Prettify the output of the tool. Always use "false" for this argument, unless debugging. |
Output
Type:stringThe HTML or text content of the page or the element specified by selector.