Skip to main content
Glama

page.visit_batch

Visit many URLs in parallel, extract text, markdown, or custom JS from each, and return per-page status so one bad page never stalls the batch.

Instructions

Visit many URLs and extract from each, with a separate status per page (ok / error / timeout) so one bad page never stalls the rest. Runs in background tabs (concurrency, default 2) with a hard per-page deadline; a page that misses it has its tab reset and the batch moves on. The run lives in the daemon: this call waits up to wait_ms, returns every finished page, and the rest keeps going - poll page.batch_status, so a client timeout never loses results. Sends MCP progress notifications per page when the client asks for them. extract: "text" (innerText, default), "visible_text", "markdown" (doc capture; save:true also stores each as a document), or "none"; expression runs your own JS per page and returns its value.

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": "page.visit_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNoWith extract:"markdown", also store each page in the doc library.
urlsYesAbsolute URLs, at most 500.
labelNo
extractNo
wait_msNoHow long this call waits before returning what is done (default 60000, 0 returns at once).
delay_msNoPause between pages per tab. Use it on someone else's server.
selectorNoExtract from this element instead of the whole page.
max_charsNoText kept per page (default 4000, max 200000). text_length gives the full size.
settle_msNoExtra wait after load, before extracting.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
collectionNo
expressionNoJS evaluated on each page after load; its JSON value is returned as value.
wait_untilNo
concurrencyNoParallel tabs, 1-6. Default 2.
page_timeout_msNoHard deadline per page, navigation and extraction together. Default 45000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the sparse annotations (readOnlyHint=false, openWorldHint=true): background tabs with default concurrency 2, a hard per-page deadline after which the tab is reset and the batch continues, daemon-resident execution that survives client timeouts, and per-page MCP progress notifications. That is exactly the operational context an agent needs for a long-running async tool.

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?

Purpose and per-page failure isolation are front-loaded, then async/polling semantics, then the extract modes — a logical order with no filler. It is a dense single paragraph, though, and the extract enumeration at the end makes it heavier than it needs to be.

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 15-parameter, no-output-schema, async tool, the description covers concurrency, deadlines, partial results, progress, and extraction modes well. The notable gap is that it tells the agent to poll page.batch_status without stating how the batch handle is obtained or returned, leaving the handoff between the two tools implicit.

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?

Adds real meaning beyond the 73%-covered schema: the four extract modes are spelled out, including that markdown is doc capture and save:true stores documents, and that expression runs custom JS and returns its value. Defaults for concurrency (2) and the deadline are restated, while label, collection, selector, wait_until, and max_chars are left to the schema.

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 ('Visit many URLs and extract from each') plus the batch semantics that separate it from single-page siblings like page.navigate and page.extract_text. The per-page status model (ok / error / timeout) further pins down what the tool returns.

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?

Gives concrete operating guidance: the run lives in the daemon, the call waits up to wait_ms, and the remainder should be collected via page.batch_status so a client timeout never loses results. Also advises delay_ms 'on someone else's server' and explains wait_ms=0 for immediate return. It never explicitly contrasts with single-URL siblings, so it stops short of full alternative routing.

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

Deploy Server

Other Tools