Skip to main content
Glama

browser_get_text

Read-only

Read a web page's full text—headings, paragraphs, lists, tables, links, and frames—or target one element with a ref or CSS selector. Continue long output using the returned offset.

Instructions

Read the page's text the way a person reads it — headings, paragraphs, lists, tables, links — in full (nothing clipped), frames from other sites included. Pass a ref (e.g. an email body or article from the snapshot) or a CSS selector to read only that part. Long text comes in pages: continue with the offset given at the end.

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

Input Schema

NameRequiredDescriptionDefault
refNoRead only this element (a ref from the snapshot)
linksNoInclude link addresses as [text](url) (default true)
offsetNoContinue from this character (given at the end of a page)
maxCharsNoCharacters per page (default 30000)
selectorNoRead only the first element matching this CSS selector

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds genuinely non-redundant behavior: nothing is clipped, content from other sites' frames is included, and long output is paginated with an offset returned at the end of each page. It does not say what the text looks like (markdown? link syntax default) or what happens on selector mismatch, but the pagination and frame-inclusion details go well 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.

Conciseness5/5

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

Three sentences, each carrying distinct load: what gets read and how completely, how to narrow it, and how to paginate. The completeness guarantee and the pagination hint are placed where a reader will hit them, with no filler or restatement of the tool name.

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?

With no output schema, the description must carry return-value semantics, and it largely does — markdown-like text with headings/lists/tables/links, unclipped content, paginated chunks with a trailing offset. What's left unsaid is the exact output shape (e.g., how links render when links=false) and failure behavior for an invalid ref or non-matching selector, which for a five-parameter read tool is a modest gap rather than a blocker.

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 all five parameters are already documented with defaults and bounds, making 3 the baseline. The description adds one useful piece of semantics the schema cannot express: that ref and selector are alternative narrowing mechanisms for the same read, and that offset values are supplied by the previous page's trailing output.

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 — read the page's text — and enumerates the content types covered (headings, paragraphs, lists, tables, links) plus the scope guarantees (nothing clipped, cross-site frames included). What's missing is explicit differentiation from siblings like browser_snapshot, which also exposes page content; the parenthetical '(a ref from the snapshot)' hints at the workflow but never states when to read text versus take a snapshot.

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

Usage Guidelines3/5

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

It explains how to narrow the read ('Pass a ref ... or a CSS selector to read only that part') and how to continue a long read via offset, which is real operational guidance. But there is no when-to-use versus alternatives statement and no exclusions — an agent must infer from the name and context that this is the tool for prose extraction rather than the accessibility tree.

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