Skip to main content
Glama
Playwright Smart MCP

Playwright Smart MCP

by jaystarz1

browser_extract

Navigate to a URL and extract page text and structure, optionally targeting a CSS selector or including links, to gather web content for analysis.

Instructions

Navigate to a URL and extract page content. Returns text content and page structure.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL to extract content from
selectorNoOptional: CSS selector to extract specific element
includeLinksNoInclude links in output (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description bears the full disclosure burden. It does state what comes back ('text content and page structure'), which is more than nothing, but it omits whether navigation is a read-only side-effect-free operation, how JavaScript-rendered or authenticated pages are handled, and whether it waits for load before extracting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, with the action stated first and the return behavior second. Nothing is wasted and nothing important is buried.

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?

For a simple three-parameter extraction tool this covers the essentials, and the schema already fully documents inputs. However, with no output schema and no annotations, the description should say more about what 'page structure' actually means and whether extraction is a pure read before an agent can call it with confidence.

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 each of the three parameters (url, selector, includeLinks) is already documented in the schema, including the default for includeLinks. The description adds no meaning beyond that, so the baseline of 3 applies.

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 pairs a specific verb ('Navigate to a URL') with a specific resource action ('extract page content'), which is enough to distinguish it from browser_screenshot or browser_execute_code by implication. It stops short of explicitly contrasting itself with those siblings, so an agent must infer the boundary.

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 explicit when-to-use guidance and no mention of alternatives such as browser_interact for dynamic pages or browser_screenshot for visual capture. The agent can infer usage from the verb, but nothing tells it when this tool is the wrong choice.

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