Skip to main content
Glama

read_text

Read-only

Extracts plain text from the current page or a specific element, ideal for reading tables, lists, and articles in compact chunks; use offset to continue when content is long.

Instructions

读取当前页面(或某个元素)的纯文本内容,适合读取表格、列表、文章等大量信息,比快照紧凑得多。内容过长时分段返回,用 offset 继续读取。

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
refNo只读这个元素内的文字(来自快照或 find 的 ref)
offsetNo从第几个字符开始读,默认 0
maxCharsNo本次最多返回多少字符,默认 20000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds one real behavioral fact — long content is returned in segments and must be resumed via offset — but says nothing about how truncation is signalled, ordering, or whether hidden elements are included.

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 short sentences, front-loaded with purpose, then compactness rationale, then pagination mechanics — every clause carries information an agent needs.

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?

Read-only tool with no output schema; the description covers what is returned (plain text), why it is preferred over snapshot, and how long output is handled. Only minor gaps remain, such as how the agent detects that more segments exist.

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 100%, so the baseline is 3; the description goes further by explaining that offset exists to continue reading after a truncated segment, which gives the parameter operational meaning beyond its schema text.

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?

Uses a specific verb+resource ("读取...纯文本内容") and explicitly contrasts the tool with the sibling snapshot tool ("比快照紧凑得多"), so an agent can tell which one to pick without opening either schema.

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?

Gives a clear positive context (tables, lists, articles, large volumes of text) and names the alternative it replaces (snapshot). It lacks an explicit "do not use when..." exclusion, e.g. for interactive or structured-state needs, so it falls short of a 5.

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