Skip to main content
Glama

browser_read_text

Read-only

Extract the visible text of a page or element with all markup removed; narrow the selector to target known content and read text inside iframes by frame.

Instructions

The visible text of an element, with the markup gone, whole.

The cheapest way to read a page. Narrow the selector when you know where the answer is; use browser_read_html instead when the structure matters, or browser_snapshot when you need something to click.

Text inside iframes follows the page's, each frame under a line naming it (one that cannot be read is named too). frame reads inside that one.

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

Input Schema

NameRequiredDescriptionDefault
frameNo
browserNoDefaults to `main`; `support` is the helper beside it.
selectorNobody

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.74.0

TDQS

A4.2/5.0
Behavior4/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 real context beyond that: iframe text is merged into the page output with each frame under a naming line, and unreadable frames are still named. The final sentence about frame reads is garbled enough to blur the frame behavior, keeping this below a 5.

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

Conciseness3/5

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

The value proposition and the sibling routing are front-loaded and waste-free. However, the trailing sentence "frame reads inside that one." is syntactically broken and does not earn its place as written; it costs clarity rather than adding it.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and annotations cover the read-only safety profile. For a three-parameter read tool the description is nearly complete; the only shortfall is the muddled frame-read wording that leaves the iframe/frame interaction slightly ambiguous.

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 only 33%, so the description must compensate. It adds useful meaning for selector (narrow it when you know the target; default body is implied) and gestures at frame semantics via the iframe/frame sentence, but that sentence is too tangled to clarify how the frame parameter scopes reads. The browser parameter's meaning is already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource in the first line: read the visible text of an element with markup stripped. The follow-up sentence explicitly distinguishes it from browser_read_html (structure) and browser_snapshot (clickable targets), so an agent can separate it from siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance ("the cheapest way to read a page"), a narrowing heuristic ("narrow the selector when you know where the answer is"), and names two alternatives with the conditions that select them. Nothing is left to inference.

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