Skip to main content
Glama

Extract Structured Data

browser_extract
Read-only

Extract structured JSON fields from the current webpage using CSS selectors and optional HTML attributes, including multiple matches as arrays for data collection.

Instructions

Extract structured JSON fields from the current webpage using CSS selectors and optional attributes.

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

Input Schema

NameRequiredDescriptionDefault
fieldsYesList of structured fields to extract from the current page
task_idNoOptional task ID for execution tracking and cancellation
session_idNoOptional target browser session ID (defaults to active default session)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds only the scoping fact that extraction targets the current page; it does not disclose what happens when a selector matches nothing, whether extraction waits for the page to settle, or the returned JSON shape (no output schema exists). Meaningful but thin beyond the annotations.

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?

One front-loaded sentence with no filler and no repetition. It is efficient, though its brevity means the phrase "optional attributes" is the only nod to the richer selector options defined in the schema.

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 full schema coverage and solid annotations, the description covers the core contract adequately for a read-only extraction tool. Gaps remain around no-match behavior, whether the page must be loaded first, and result shape, which for a tool with no output schema would help an agent validate its call.

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 every parameter including the nested field objects, attribute defaults to innerText, and the 100-match cap is already documented in the schema. The description's mention of "CSS selectors and optional attributes" restates that without adding syntax, limitations, or edge cases. Baseline 3 applies when the schema carries the semantics.

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?

States a specific verb and resource pair: "Extract structured JSON fields from the current webpage," plus the mechanism (CSS selectors, optional attributes). An agent can tell this is a selector-driven scraping tool rather than a full-page dump, which distinguishes it from browser_read_page or browser_observe. It does not name those siblings explicitly, so it falls short of a 5.

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?

The phrase "current webpage" implies the page must already be open, but there is no statement of when to choose this over browser_read_page, browser_observe, or browser_verify. No exclusions, prerequisites, or alternatives are given, leaving selection to inference.

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