Skip to main content
Glama

browser_extract

Extract links, tables, forms, and structured page data from a webpage to get clean, structured results instead of parsing raw text.

Instructions

Pull a page's structures out whole: links (text+href), tables (headers+rows), forms (fields, types, labels, required), or structured data (title, meta, JSON-LD, headings). Cheaper and more correct than scraping browser_text.

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
kindNoWhat to extract
limitNoMax rows/items per structure (default 100)
selectorNoLimit to a subtree, e.g. "main"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.5.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the shape of what comes back per kind (text+href, headers+rows, field types/labels/required), which is genuine behavioral value. It does not say which page or tab is the target, whether a prior navigation is required, what happens on an unmatched selector, or whether the operation is purely read-only.

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?

The definition is two sentences, front-loaded with the action and the enumerated modes, with no filler. The parenthetical enumerations are dense but each one earns its place by clarifying the four modes; the only minor cost is that the parameter names themselves never appear in the prose.

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

Completeness3/5

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

With no output schema and no annotations, the description does cover return-value structure per kind, which is the largest gap it could have left. It remains incomplete for a browser tool about where the extraction is sourced from (current tab? session?) and about failure behavior for an unmatched selector, both of which an agent needs to call it reliably.

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%, with each of the three parameters documented and the enum for kind spelled out, so the schema already does the explanatory work. The description adds no meaning beyond it — neither limit nor selector is mentioned in the prose, though the per-kind value descriptions partially echo the schema's intent.

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?

"Pull a page's structures out whole" states a specific verb and resource, then enumerates the four extractable structure types (links, tables, forms, structured data) which map one-to-one onto the kind enum. It also names the sibling it replaces (browser_text), so an agent can distinguish it without opening either schema.

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?

The closing clause "Cheaper and more correct than scraping browser_text" gives an explicit alternative and the reason to prefer this tool. It stops short of stating when NOT to use it (e.g., when you need raw page text or a single element's DOM) and gives no precondition such as requiring a page to be loaded first.

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