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
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| limit | No | Stop after this many items. | |
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| fields | Yes | Map 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)"}. | |
| delayMs | No | Pause after each page/scroll (default 1200). Be polite to servers. | |
| maxPages | No | ||
| savePath | No | ||
| itemSelector | Yes | ||
| nextSelector | No | Selector of the "next page" link/button. | |
| infiniteScroll | No | Scroll to bottom this many times per page, extracting after each. |