Skip to main content
Glama
mcp-playwright

mcp-playwright

by vnikhilk

browser_get_text

Extract visible text from a web page by navigating to its URL, with an optional CSS selector to scope extraction to specific elements.

Instructions

Navigate to a URL and return the visible text content of the page.

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_get_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to scrape text from
selectorNoCSS selector to scope text extraction (default: body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 behavioral burden, and it discloses almost nothing beyond the return type. It does not say whether navigation causes side effects, whether JavaScript-rendered or hidden content is included, how long it waits for the page, or what happens on HTTP errors, redirects, or timeouts; 'visible text' is the only meaningful behavioral clue.

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 short sentence, front-loaded with the action and resource, with no filler or redundancy. Its compactness is efficient, though it verges on under-specification rather than genuine crispness.

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?

This is a browser-automation tool with meaningful operational complexity (dynamic content, load waiting, navigation side effects), no annotations, and no output schema, yet the description covers only the trivial basics. An agent calling it cannot predict timing, error, or rendering behavior from this definition.

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 both url and selector are already documented in the schema, and the baseline of 3 applies. The description's phrase 'visible text content' loosely corroborates the selector's scoping role but adds no format, syntax, or edge-case detail beyond the schema.

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 compound action (navigate to a URL, return visible text) and a clear resource, so the agent knows it produces text rather than an image, distinguishing it functionally from browser_screenshot. It does not name the sibling, but the verb+resource pair is unambiguous.

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 single sentence gives no when-to-use guidance, no conditions or prerequisites, and never mentions the sibling tool browser_screenshot as the alternative for visual capture. The agent must infer that this is the right tool when it needs page text.

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

Deploy Server

Other Tools