Skip to main content
Glama

Batch scrape

pagesift_batch_scrape

Scrape a list of known URLs as one batch job with shared options and return a job ID to poll; invalid URLs are isolated and page failures don't stop remaining pages.

Instructions

Scrape a list of known URLs as one job with the same options. Use pagesift_scrape for one URL and pagesift_crawl when the URLs are not known yet. Invalid URLs are returned in invalidURLs instead of failing the job; a page that fails is recorded in the job's errors while the other pages still return. All requests share the server's concurrency and per-host rate limits. urls accepts up to 10000 entries and options applies to every URL (no per-URL overrides). Returns a job id; poll it with pagesift_poll_job.

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": {
      "urls": "<urls>"
    },
    "name": "pagesift_batch_scrape"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYesThe URLs to scrape, 1 to 10000.
optionsNoScrape options applied to every URL; there are no per-URL overrides.

Output Schema

NameRequiredDescriptionDefault
idYesJob id; pass it to pagesift_poll_job or pagesift_cancel_job.
nextNoSuggested next call.
statusYesThe job has started.
invalidURLsNoURLs that were rejected before the job started.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed29 schema fields changedv1.2.2
    • addedInput schema / properties / options / description
      Added value: +"Scrape options applied to every URL; there are no per-URL overrides."
    • addedInput schema / properties / options / properties / actions / items / properties / all / description
      Added value: +"Act on every element matching the selector instead of the first one."
    • addedInput schema / properties / options / properties / actions / items / properties / direction / description
      Added value: +"Scroll direction."
    • addedInput schema / properties / options / properties / actions / items / properties / format / description
      Added value: +"Output format for screenshot or PDF actions."
    • addedInput schema / properties / options / properties / actions / items / properties / fullPage / description
      Added value: +"Capture the full page instead of the viewport."
    • addedInput schema / properties / options / properties / actions / items / properties / key / description
      Added value: +"Key to press, for example Enter or ArrowDown."
    • addedInput schema / properties / options / properties / actions / items / properties / landscape / description
      Added value: +"Use landscape orientation for PDF output."
    • addedInput schema / properties / options / properties / actions / items / properties / milliseconds / description
      Added value: +"Wait time for wait actions, in milliseconds."
    • addedInput schema / properties / options / properties / actions / items / properties / quality / description
      Added value: +"JPEG quality from 1 to 100."
    • addedInput schema / properties / options / properties / actions / items / properties / scale / description
      Added value: +"Scale factor for PDF output."
    • addedInput schema / properties / options / properties / actions / items / properties / script / description
      Added value: +"JavaScript source for executeJavascript."
    • addedInput schema / properties / options / properties / actions / items / properties / selector / description
      Added value: +"CSS selector of the element to act on."
    • addedInput schema / properties / options / properties / actions / items / properties / text / description
      Added value: +"Text to type or to use as the JavaScript expression, depending on the action."
    • addedInput schema / properties / options / properties / actions / items / properties / type / description
      Added value: +"Action to run."
    • addedInput schema / properties / options / properties / actions / items / properties / viewport / description
      Added value: +"Viewport size for screenshot or PDF output."
    • addedInput schema / properties / options / properties / actions / items / properties / viewport / properties / height / description
      Added value: +"Viewport height in CSS pixels."
    • addedInput schema / properties / options / properties / actions / items / properties / viewport / properties / width / description
      Added value: +"Viewport width in CSS pixels."
    • addedInput schema / properties / options / properties / chunking / properties / type / description
      Added value: +"Chunking strategy, for example recursive."
    • addedInput schema / properties / options / properties / excludeTags / description
      Added value: +"Remove content inside these CSS selectors."
    • changedInput schema / properties / options / properties / formats / items / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "markdown",
      -      "html",
      -      "rawHtml",
      -      "links",
      -      "images",
      -      "extract"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "intent": {
      -        "description": "extract without a schema: what to extract; the LLM writes the schema.",
      -        "type": "string"
      -      },
      -      "modes": {
      -        "description": "changeTracking: diff modes.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "prompt": {
      -        "description": "json: what to extract.",
      -        "type": "string"
      -      },
      -      "schema": {
      -        "description": "extract: CSS schema {baseSelector, fields}; json: JSON Schema for the LLM.",
      -        "type": "object"
      -      },
      -      "type": {
      -        "enum": [
      -          "markdown",
      -          "html",
      -          "rawHtml",
      -          "links",
      -          "images",
      -          "extract"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "markdown",
      +      "html",
      +      "rawHtml",
      +      "links",
      +      "images",
      +      "extract"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "intent": {
      +        "description": "extract without a schema: what to extract; the LLM writes the schema.",
      +        "type": "string"
      +      },
      +      "modes": {
      +        "description": "changeTracking: diff modes.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "prompt": {
      +        "description": "json: what to extract.",
      +        "type": "string"
      +      },
      +      "schema": {
      +        "description": "extract: CSS schema {baseSelector, fields}; json: JSON Schema for the LLM.",
      +        "type": "object"
      +      },
      +      "type": {
      +        "description": "Format name.",
      +        "enum": [
      +          "markdown",
      +          "html",
      +          "rawHtml",
      +          "links",
      +          "images",
      +          "extract"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / options / properties / includeTags / description
      Added value: +"Only keep content inside these CSS selectors."
    • addedInput schema / properties / options / properties / location / description
      Added value: +"Geographic hint for the request, for example {country: \"US\", languages: [\"en\"]}."
    • addedInput schema / properties / options / properties / location / properties / country / description
      Added value: +"Two-letter country code."
    • addedInput schema / properties / options / properties / location / properties / languages / description
      Added value: +"Preferred language codes, most preferred first."
    • addedInput schema / properties / options / properties / removeBase64Images / description
      Added value: +"Remove inline base64 image data from the output. Defaults to true."
    • addedInput schema / properties / options / properties / storeInCache / description
      Added value: +"Store a successful result in the result cache. Defaults to true."
    • changedInput schema / properties / urls / description
      Previous value: -"The URLs to scrape."New value: +"The URLs to scrape, 1 to 10000."
    • addedInput schema / properties / urls / maxItems
      Added value: +10000
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "id": {
      +      "description": "Job id; pass it to pagesift_poll_job or pagesift_cancel_job.",
      +      "type": "string"
      +    },
      +    "invalidURLs": {
      +      "description": "URLs that were rejected before the job started.",
      +      "items": {
      +        "description": "Invalid URL",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "next": {
      +      "description": "Suggested next call.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "The job has started.",
      +      "enum": [
      +        "scraping"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed51 schema fields changedv0.81.6
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / options / additionalProperties
      Added value: +false
    • addedInput schema / properties / options / properties / actions / items / properties / all
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / actions / items / properties / format
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / actions / items / properties / landscape
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / actions / items / properties / milliseconds / minimum
      Added value: +0
    • changedInput schema / properties / options / properties / actions / items / properties / milliseconds / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / options / properties / actions / items / properties / quality
      Added value: +{
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / options / properties / actions / items / properties / scale
      Added value: +{
      +  "type": "number"
      +}
    • changedInput schema / properties / options / properties / actions / items / properties / type / enum
      Previous value: -[
      -  "wait",
      -  "screenshot",
      -  "scroll",
      -  "scrape",
      -  "click",
      -  "write",
      -  "press",
      -  "executeJavascript",
      -  "generatePDF"
      -]New value: +[
      +  "wait",
      +  "click",
      +  "write",
      +  "press",
      +  "scroll",
      +  "screenshot",
      +  "scrape",
      +  "executeJavascript",
      +  "pdf"
      +]
    • addedInput schema / properties / options / properties / actions / items / properties / viewport
      Added value: +{
      +  "properties": {
      +    "height": {
      +      "type": "integer"
      +    },
      +    "width": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / options / properties / blockAds
      Added value: +{
      +  "description": "Block ads when rendering. Defaults to true.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / chunking
      Added value: +{
      +  "description": "Split markdown into chunks, e.g. {\"type\": \"recursive\", \"size\": 400}.",
      +  "properties": {
      +    "type": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / options / properties / discoverScripts
      Added value: +{
      +  "description": "With engine http and the links format: also list same-origin URLs found in external scripts.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / egress
      Added value: +{
      +  "description": "Name of a configured [[egress]] to fetch through.",
      +  "type": "string"
      +}
    • changedInput schema / properties / options / properties / engine / description
      Previous value: -"pagesift extension: fetch with plain HTTP, a headless browser, or decide automatically (default)."New value: +"Fetch with plain HTTP, a headless browser, or decide automatically (default)."
    • addedInput schema / properties / options / properties / explain
      Added value: +{
      +  "description": "Record how the result was produced in metadata.pagesift.plan.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / exportImages
      Added value: +{
      +  "description": "Export the page's images (PDF embedded images, Office media, web images); returned as resource links.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / options / properties / formats / description
      Previous value: -"Output formats. Defaults to [\"markdown\"]."New value: +"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."
    • addedInput schema / properties / options / properties / formats / items / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "markdown",
      +      "html",
      +      "rawHtml",
      +      "links",
      +      "images",
      +      "extract"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "intent": {
      +        "description": "extract without a schema: what to extract; the LLM writes the schema.",
      +        "type": "string"
      +      },
      +      "modes": {
      +        "description": "changeTracking: diff modes.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "prompt": {
      +        "description": "json: what to extract.",
      +        "type": "string"
      +      },
      +      "schema": {
      +        "description": "extract: CSS schema {baseSelector, fields}; json: JSON Schema for the LLM.",
      +        "type": "object"
      +      },
      +      "type": {
      +        "enum": [
      +          "markdown",
      +          "html",
      +          "rawHtml",
      +          "links",
      +          "images",
      +          "extract"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / options / properties / formats / items / enum
      Removed value: -[
      -  "markdown",
      -  "html",
      -  "rawHtml",
      -  "screenshot",
      -  "links",
      -  "images",
      -  "summary",
      -  "changeTracking",
      -  "branding",
      -  "json",
      -  "query",
      -  "audio"
      -]
    • removedInput schema / properties / options / properties / formats / items / type
      Removed value: -"string"
    • addedInput schema / properties / options / properties / headers
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Extra request headers.",
      +  "type": "object"
      +}
    • changedInput schema / properties / options / properties / ifModifiedSince / description
      Previous value: -"pagesift extension: HTTP date for a conditional request."New value: +"HTTP date for a conditional request."
    • changedInput schema / properties / options / properties / ifNoneMatch / description
      Previous value: -"pagesift extension: ETag for a conditional request."New value: +"ETag for a conditional request."
    • removedInput schema / properties / options / properties / jsonOptions
      Removed value: -{
      -  "description": "Options for the json format.",
      -  "properties": {
      -    "prompt": {
      -      "type": "string"
      -    },
      -    "schema": {
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / options / properties / keepSession
      Added value: +{
      +  "description": "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.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / location / additionalProperties
      Added value: +false
    • removedInput schema / properties / options / properties / lockdown
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedInput schema / properties / options / properties / maxAge / minimum
      Added value: +0
    • changedInput schema / properties / options / properties / maxAge / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / options / properties / minAge
      Added value: +{
      +  "description": "Only return a cached copy at least this many milliseconds old.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / options / properties / mobile / description
      Added value: +"Emulate a phone when rendering."
    • addedInput schema / properties / options / properties / parsers / description
      Added value: +"PDF parser selection, e.g. [\"pdf\"] or [{\"type\": \"pdf\", \"maxPages\": 10}]."
    • removedInput schema / properties / options / properties / parsers / items
      Removed value: -{
      -  "enum": [
      -    "pdf"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / options / properties / pdfOptions
      Removed value: -{
      -  "properties": {
      -    "maxPages": {
      -      "maximum": 10000,
      -      "minimum": 1,
      -      "type": "integer"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedInput schema / properties / options / properties / profile
      Removed value: -{
      -  "properties": {
      -    "name": {
      -      "type": "string"
      -    },
      -    "saveChanges": {
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "name"
      -  ],
      -  "type": "object"
      -}
    • changedInput schema / properties / options / properties / proxy / description
      Previous value: -"Only basic and auto are supported; pagesift does not bypass bot protection."New value: +"\"basic\", \"auto\", or an http/https/socks5 proxy URL. pagesift does not solve CAPTCHAs; a block or challenge page is reported as an error."
    • removedInput schema / properties / options / properties / proxy / enum
      Removed value: -[
      -  "basic",
      -  "stealth",
      -  "enhanced",
      -  "auto"
      -]
    • addedInput schema / properties / options / properties / queryFilter
      Added value: +{
      +  "description": "Keep only the blocks relevant to a query: a string, or {query, threshold, relative, topK, maxTokens, minTokens, headings}.",
      +  "type": [
      +    "string",
      +    "object"
      +  ]
      +}
    • removedInput schema / properties / options / properties / queryOptions
      Removed value: -{
      -  "description": "Options for the query format.",
      -  "properties": {
      -    "mode": {
      -      "default": "freeform",
      -      "enum": [
      -        "directQuote",
      -        "freeform"
      -      ],
      -      "type": "string"
      -    },
      -    "prompt": {
      -      "maxLength": 10000,
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "prompt"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / options / properties / redactPII
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedInput schema / properties / options / properties / respondTiming
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "html",
      +    "visible-content",
      +    "mutation-idle",
      +    "resource-idle",
      +    "media-idle",
      +    "network-idle"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / options / properties / screenshotOptions
      Removed value: -{
      -  "properties": {
      -    "fullPage": {
      -      "type": "boolean"
      -    },
      -    "quality": {
      -      "type": "number"
      -    },
      -    "viewport": {
      -      "properties": {
      -        "height": {
      -          "type": "number"
      -        },
      -        "width": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "width",
      -        "height"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedInput schema / properties / options / properties / skipTlsVerification
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedInput schema / properties / options / properties / storeSnapshot
      Added value: +{
      +  "description": "Keep a snapshot of this page for later change tracking.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / options / properties / timeout / minimum
      Previous value: -1New value: +1000
    • changedInput schema / properties / options / properties / waitFor / description
      Previous value: -"Milliseconds to wait before capturing the page."New value: +"Milliseconds to wait before capturing a rendered page."
    • addedInput schema / properties / options / properties / waitFor / minimum
      Added value: +0
    • changedInput schema / properties / options / properties / waitFor / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / options / properties / zeroDataRetention
      Removed value: -{
      -  "type": "boolean"
      -}
  3. First observedv0.81.2

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, which leave the failure model unexplained. The description fills that gap precisely: invalid URLs land in invalidURLs rather than failing the job, individual page failures surface in the job's errors while other pages still return, and all requests share the server's concurrency and per-host rate limits. That is exactly the behavioral context an agent needs for a fan-out job tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose comes first, alternatives second, failure semantics third, limits fourth, and the completion instruction last. Every sentence carries distinct information; nothing restates the name, title, or schema text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter job-submission tool with a rich nested options object, the description covers scope, alternatives, partial-failure behavior, rate limits, and the follow-up polling step. An output schema exists, so return-value detail is correctly omitted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds a constraint the schema cannot express: options applies identically to every URL with no per-URL overrides, and urls accepts up to 10000 entries. The uniform-options rule is a real semantic constraint that changes how an agent builds the call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Scrape a list of known URLs") and immediately defines the scope boundary: one job, shared options. It explicitly separates itself from pagesift_scrape (single URL) and pagesift_crawl (unknown URLs), so an agent can pick it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names both relevant alternatives and the exact condition that selects each: pagesift_scrape for one URL, pagesift_crawl when the URLs are not known yet. It also tells the agent what to do afterwards (poll with pagesift_poll_job), so the full usage path is covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.