Skip to main content
Glama

Read the text of one node

browser_text
Read-onlyIdempotent

Read visible text from a single web page node in bounded slices, using a continuation token to retrieve the next chunk of long content.

Instructions

Read visible text of ONE node or section by id, with a bounded character budget (maxChars defaults to 600, maximum 12000). Returns text, textSource, capturedAt (first-read timestamp), totalChars, returnedChars, offset, nextOffset, truncated, observationId and continuation in structuredContent. Pass a non-null continuation directly to browser_text for the next slice; it includes sessionId. offset > 0 requires observationId from the initial read. The first read freezes redacted text at capturedAt (not at observation time) so later slices cannot splice a changing document; re-observe and re-find to refresh it. Snapshot storage is bounded per observation (1000000 UTF-16 units / 128 nodes); exceeding it returns an explicit error. Continuations fail on expired observations, detached ids, navigation or privacy-policy changes. Offsets count JavaScript UTF-16 code units. A cut value must be continued, not recorded as complete; the prose also marks truncation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
offsetNoInteger start offset; default 0. Positive offsets require observationId and an initial read.
maxCharsNoInteger characters per slice, 1–12000; default 600.
sessionIdNooptional: the session this call belongs to (from browser_session_open). Omitted uses the shared default session.
observationIdNoObservation owning the initial text read; required when offset > 0.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv0.1.2
    • addedInput schema / properties / maxChars
      Added value: +{
      +  "description": "Integer characters per slice, 1–12000; default 600.",
      +  "maximum": 12000,
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / observationId
      Added value: +{
      +  "description": "Observation owning the initial text read; required when offset > 0.",
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Integer start offset; default 0. Positive offsets require observationId and an initial read.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/idempotentHint annotations by disclosing that the first read freezes redacted text at capturedAt, later slices cannot splice a changing document, storage is bounded per observation, and continuations fail on expired observations, detached ids, navigation, or privacy-policy changes. This is rich, non-obvious behavioral detail an agent needs to use the tool correctly.

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?

Front-loaded with the core read operation and budget, then proceeds through continuation mechanics, snapshot semantics, limits, and failure modes. Every sentence carries distinct information; there is no filler or repetition of annotation facts.

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

Completeness5/5

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

Even without an output schema, the description enumerates all returned fields, explains truncation behavior, documents failure conditions, and covers pagination prerequisites. For a read/pagination tool this is unusually complete; an agent has what it needs to invoke initial reads and continuations safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80% and already describes offset, maxChars, sessionId, and observationId, so the baseline is 3. The description adds meaningful value: id targets a node/section, maxChars defaults to 600, offsets count JavaScript UTF-16 code units, and continuation includes sessionId. This strengthens understanding beyond the schema, though the schema still carries most parameter documentation.

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 ('Read') with a specific resource ('visible text of ONE node or section by id') and immediately differentiates itself as a single-node reader with bounded pagination. This clearly separates it from sibling tools like browser_find, browser_verify, or browser_scroll.

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

Usage Guidelines4/5

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

Provides clear operational context: how to make an initial read, how to continue with continuation, and when offset requires observationId. It does not explicitly name alternative tools for finding or re-observing nodes, but it does instruct to 're-observe and re-find' for refresh, which gives practical guidance without exclusions.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zumerlab/snapsurf'

If you have feedback or need assistance with the MCP directory API, please join our Discord server