Skip to main content
Glama

browser_extract

Extract text or structured data from a live webpage by instruction, schema, or CSS selector; collect list rows or long text in resumable chunks.

Instructions

Extract text or structured data from the webpage according to an extraction instruction.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
modeNoSelf-checking collection. "rows" saves list records, follows Next or scrolls the list, rechecks a load that adds nothing, and stops at target or at the total the pager claims. "chunk" reads long text in paragraph-sized chunks and records the section reached. Each call works for up to about 12 s; call again with collectionId until complete is true or stopReason explains the shortfall.
sinceNoReturn only rows (or text characters) after this count; pass nextSince from the previous call.
tabIdNoOptional browser tab id to act on instead of the focused tab.
schemaNoJSON Schema, validated without eval. Unsupported keywords return an explicit error. Extraction uses the configured model.
targetNoWith mode="rows": how many records to collect. Without it, one capture of the current list.
selectorNoOptional CSS selector to scope extraction.
instructionNoExtraction guidance or prompt (e.g. "Extract all product prices and titles").
collectionIdNoReturned by the first mode call; pass it to resume the same collection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, but it discloses nothing about model-based extraction cost, the roughly 12-second per-call limit, collection resumption, or what happens on failure. All of that operational context lives in the parameter schema rather than the description. For a tool with no annotation coverage, that leaves the behavioral profile thin.

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?

It is a single front-loaded sentence with no filler or repetition. The trade-off is that it is arguably too terse for a nine-parameter tool with collection/resume semantics, but nothing in the sentence is wasted.

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?

Placeholder

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

Parameters3/5

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

Schema description coverage is 100%, so parameters such as mode, since, collectionId, and target are already well documented in the schema. The description adds only a passing reference to the "extraction instruction," which lightly reinforces the instruction parameter but contributes no format or syntax detail beyond the schema. Baseline 3 is appropriate.

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?

The description names a specific verb and resource: "Extract text or structured data from the webpage." That is clear enough for an agent to know the general function. It does not, however, distinguish this tool from siblings such as browser_read or browser_eval, which an agent could plausibly pick for the same goal.

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

Usage Guidelines2/5

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

There is no guidance about when to choose browser_extract over browser_read, browser_eval, or browser_snapshot, and no stated prerequisites or exclusions. The phrase "according to an extraction instruction" only implies that an instruction is involved; it does not tell an agent when this tool is the right choice.

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