get_page_content
Retrieve cleaned page HTML stripped of scripts and styles. Target specific elements via CSS selector and read long pages in chunks using an offset.
Instructions
Return the current page's HTML with // tags stripped out.
If selector is given (a CSS selector, e.g. ".recipe-card" or "#content"),
only the matching element(s) are returned instead of the whole page,
which avoids truncation on large pages. If the content is longer than
max_length, it's truncated and the response tells you the offset to pass
on the next call to read the following chunk.
If the page looks like a Cloudflare/Akamai/CAPTCHA challenge page rather than real content, a "bot-challenge page" warning is prepended (only on the first chunk, offset=0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| selector | No | ||
| max_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |