Skip to main content
Glama
mcp-browser-dev-tools

mcp-browser-dev-tools

by Hinaser

read_text

Extract visible page or element text as line-based content up to a character limit, and optionally list HTTP(S) links, so agents can read and verify webpage content.

Instructions

Visible text of the main content, or of selector, as lines up to maxChars; with links, also its links.

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": "read_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
linksNoAlso list http(s) links (default false).
maxCharsNoDefault 8000.
maxLinksNoDefault 50.
selectorNoLocator: ref=e3, CSS, text=…, role=button[name="…"], name=…, or a >> b
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure, and it does convey useful traits: only visible text is returned (not HTML/source), output is line-oriented, and content is capped by maxChars. It does not state that the call is read-only/non-mutating, nor what happens on selector misses or truncation beyond the cap.

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 compact sentence with the core outcome front-loaded and no filler. The trailing clause 'with links, also its links' is slightly awkward and under-polished, but nothing is wasteful.

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 5-parameter tool with no annotations and no output schema, the definition leaves gaps: the shape of the returned lines is only hinted at, and sessionId is never explained. It is adequate to call the tool correctly in the common case but not complete for an agent handling multi-session or link-cap scenarios.

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 already 80%, so the schema documents links, maxChars, maxLinks, and selector formats. The description adds only modest meaning: it ties maxChars to line truncation and clarifies that 'links' yields the element's links. It says nothing about maxLinks, the sessionId parameter, or default behavior beyond the cap.

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 names a specific verb+resource: it reads 'Visible text of the main content, or of selector' and returns it 'as lines up to maxChars,' with an optional link listing. That is concrete enough for an agent to know exactly what it gets back. It stops short of distinguishing itself from siblings like get_snapshot or evaluate_js, which could also surface page content.

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?

Usage is only implied by the phrase 'main content, or of selector' — an agent can infer it targets a sub-element via selector, but there is no explicit when-to-use guidance and no mention of when a different tool (snapshot, JS evaluation, network/console tools) would be preferable. No exclusions or prerequisites are stated.

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