Skip to main content
Glama

browser_extract

Extract structured page data—text, links, tables, or custom JavaScript results—using CSS selectors to scope collection for automation, scraping, and analysis.

Instructions

Extract structured data from the page: text, links, or custom JS.

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": {
      "type": "<type>"
    },
    "name": "browser_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesType of extraction
scriptNoCustom JavaScript (when type="custom")
selectorNoCSS selector for extraction scope

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about whether this is a read-only operation, what the returned data looks like, or how much content is returned per call. The 'custom JS' mode is a notable behavioral trait — arbitrary script execution on the page — that goes unmentioned in terms of capabilities or risks.

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 front-loaded sentence with no filler, which is efficient. It is arguably too terse for a tool with a script-execution mode, but nothing in it is wasted.

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

Completeness2/5

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

With three parameters, no annotations, and no output schema, the description should explain return shape, read-only nature, and the custom-script path. It provides none of these, leaving an agent to guess about output format and the consequences of running custom JS.

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 baseline is 3; the description adds only the mode vocabulary already listed in the schema. It does not explain the scope semantics of 'selector' (e.g., how it interacts with type) or the required/relevant script handling, and it omits the 'tables' mode present in the enum.

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 gives a specific verb (extract) and resource (structured data from the page) and enumerates modes, so an agent can tell it is the data-retrieval tool rather than an interaction tool. However the mode list ('text, links, or custom JS') is incomplete against the schema enum, which also includes 'tables', and there is no explicit contrast with siblings like browser_see.

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?

No guidance on when to choose this over browser_see or other read tools, and no stated prerequisites such as a page already being loaded. The only implied usage is the mode enumeration in the description text.

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