Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_scrape

Extract records across paginated or infinite-scroll pages, deduplicate the results, and save them as JSON or CSV using your logged-in browser session.

Instructions

Scrape many records across pages in one call: optionally open url, extract items with itemSelector+fields, then follow pagination by clicking nextSelector (up to maxPages) and/or scroll to load more (infiniteScroll = number of scrolls). Deduplicates, and saves to .json/.csv with savePath. Uses your real logged-in browser session, so it works on sites that need login or run heavy JavaScript.

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": {
      "itemSelector": "<itemSelector>",
      "fields": "<fields>"
    },
    "name": "browser_scrape"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
limitNoStop after this many items.
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
fieldsYesMap of output field -> spec. Spec is a CSS selector string relative to each item ("h2", "a.title@href" to read an attribute, "." for the item itself) or an object {selector, attr: "text"|"html"|"href"|"src"|"value"|<attribute>, all: bool (return every match as an array), type: "number", regex: "capture (group)"}.
delayMsNoPause after each page/scroll (default 1200). Be polite to servers.
maxPagesNo
savePathNo
itemSelectorYes
nextSelectorNoSelector of the "next page" link/button.
infiniteScrollNoScroll to bottom this many times per page, extracting after each.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it discloses non-obvious behavior: deduplication, persistence to .json/.csv via savePath, session reuse, and a default 1200ms page delay with a politeness note. It omits return shape and what happens when no items match, which is the remaining gap.

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

Conciseness4/5

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

A single dense sentence leads with the core action and then walks the operational sequence in execution order, so it is front-loaded and waste-free. It is long and comma-heavy, which slightly hurts scanability for a 10-parameter tool.

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

Completeness4/5

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

For a 10-parameter tool with no output schema and no annotations, the description covers the workflow, pagination modes, persistence target, dedup, and session model. It leaves open what the call returns and how limit/tabId interact with pagination, so a small amount of operational detail is missing.

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 only 60%, but the description compensates by explaining the semantics of maxPages (page cap), nextSelector ('next page' link/button), infiniteScroll (scroll count per page), savePath (file output format), and the itemSelector+fields pairing. It does not explain limit or tabId, which the schema does cover.

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

Purpose4/5

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

States a specific verb and resource ('Scrape many records across pages in one call') and enumerates the actual workflow: open url, extract with itemSelector+fields, paginate via nextSelector and/or infiniteScroll. This differentiates it from single-page extractors like browser_extract without naming a sibling explicitly.

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

Usage Guidelines4/5

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

Clear context for when this is the right tool: multi-page collection, login-gated sites, and heavy-JavaScript pages, since it 'Uses your real logged-in browser session.' It does not name alternatives or state when not to use it (e.g. single-item extraction), which keeps it short of a 5.

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