Scrape a page
pagesift_scrapeFetch a single known URL and return clean Markdown, HTML, links, images, or metadata for content extraction and RAG pipelines. Use it when you already know the exact page to capture.
Instructions
Fetch one URL and return clean content: markdown by default, or html, rawHtml, links, images and metadata. Use it when you know the page you need. For several known URLs use pagesift_batch_scrape; to find URLs on a site use pagesift_map; to collect a whole site use pagesift_crawl. pagesift respects robots.txt and reports blocked pages as errors instead of returning their content. Results are cached for 48 hours by default; set maxAge to 0 to force a live fetch. With keepSession the browser page stays open for pagesift_interact and its id is returned as metadata.scrapeId; kept pages expire after 10 minutes (sooner when idle under memory pressure). Advanced options: actions runs browser steps before capture, chunking splits Markdown, queryFilter keeps blocks relevant to a query, and parsers selects PDF pages.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "pagesift_scrape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page to scrape. | |
| proxy | No | "basic", "auto", or an http/https/socks5 proxy URL. pagesift does not solve CAPTCHAs; a block or challenge page is reported as an error. | |
| egress | No | Name of a configured [[egress]] to fetch through. | |
| engine | No | Fetch with plain HTTP, a headless browser, or decide automatically (default). | |
| maxAge | No | Accept a cached copy at most this many milliseconds old; 0 forces a live fetch. | |
| minAge | No | Only return a cached copy at least this many milliseconds old. | |
| mobile | No | Emulate a phone when rendering. | |
| actions | No | Browser actions to run before capturing the page. | |
| explain | No | Record how the result was produced in metadata.pagesift.plan. | |
| formats | No | Output formats. Defaults to ["markdown"]. Object form passes options: {"type": "extract", "schema": {"baseSelector": ..., "fields": [...]}} extracts structured data with CSS selectors (no LLM; selectors are relocated after a redesign when a store is open), {"type": "json", "schema": {...}, "prompt": "..."} asks the LLM. | |
| headers | No | Extra request headers. | |
| parsers | No | PDF parser selection, e.g. ["pdf"] or [{"type": "pdf", "maxPages": 10}]. | |
| timeout | No | Timeout in milliseconds. | |
| waitFor | No | Milliseconds to wait before capturing a rendered page. | |
| blockAds | No | Block ads when rendering. Defaults to true. | |
| chunking | No | Split markdown into chunks, e.g. {"type": "recursive", "size": 400}. | |
| location | No | Geographic hint for the request, for example {country: "US", languages: ["en"]}. | |
| excludeTags | No | Remove content inside these CSS selectors. | |
| ifNoneMatch | No | ETag for a conditional request. | |
| includeTags | No | Only keep content inside these CSS selectors. | |
| keepSession | No | Keep the browser page open and return its id in metadata.scrapeId, to continue with pagesift_interact. Only on pagesift_scrape. Close it with pagesift_interact_stop. | |
| queryFilter | No | Keep only the blocks relevant to a query: a string, or {query, threshold, relative, topK, maxTokens, minTokens, headings}. | |
| exportImages | No | Export the page's images (PDF embedded images, Office media, web images); returned as resource links. | |
| storeInCache | No | Store a successful result in the result cache. Defaults to true. | |
| respondTiming | No | When a rendered page counts as ready: html does not run scripts; the others wait for visible content, DOM mutations to settle, scripts/XHR to go quiet, or media to load. | |
| storeSnapshot | No | Keep a snapshot of this page for later change tracking. | |
| discoverScripts | No | With engine http and the links format: also list same-origin URLs found in external scripts. | |
| ifModifiedSince | No | HTTP date for a conditional request. | |
| onlyMainContent | No | Keep only the main content. Defaults to true. | |
| removeBase64Images | No | Remove inline base64 image data from the output. Defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Cleaned HTML when the html format was requested. | |
| json | No | JSON extracted by the json format; its shape follows the requested schema. | |
| links | No | Links found on the page when the links format was requested. | |
| pages | No | Per-page Markdown, only for PDF page mode. | |
| chunks | No | Markdown chunks when chunking was requested. | |
| images | No | Image URLs found on the page. | |
| actions | No | Results of browser actions: screenshots, PDFs, scraped pages and JavaScript return values. | |
| extract | No | Items extracted by an extract schema. | |
| rawHtml | No | Unmodified response body when the rawHtml format was requested. | |
| summary | No | Summary produced when the summary format was requested. | |
| warning | No | Compatibility or deprecation warning from the scrape. | |
| markdown | No | Page content as Markdown. Present when the markdown format was requested (the default). | |
| metadata | Yes | ||
| screenshot | No | Screenshot URL or data URL when the screenshot format was requested. | |
| attachments | No | Exported files when exportImages was requested. | |
| changeTracking | No |