Skip to main content
Glama

读取页面文本

get_text

Extract visible text from a web page element using a CSS selector, or from the entire page when no selector is specified.

Instructions

读取匹配 CSS 选择器元素的 innerText;selector 省略时读取整个 body。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo操作说明:展示给页面用户的自然语言描述(用户会在页面气泡的操作记录里看到),用用户的语言填写,建议始终提供
pageIdNo目标页面 id(单页时可省略)
selectorNoCSS 选择器,默认 body
Behavior3/5

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

With no annotations, the description itself must disclose behavior. It does state the read action and default selector, but does not mention whether the operation waits for the element, what happens on no match, or what the returned value looks like beyond being the innerText.

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?

A single front-loaded sentence captures the core behavior and the default case with zero redundancy. It is appropriately compact for such a simple tool.

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?

For a simple optional-parameter read tool, the description covers the essential behavior and default. It relies on the schema for note/pageId semantics, which is acceptable given 100% schema coverage, though return-value details are not explicitly stated.

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 the schema already documents all parameters. The description adds only the default-body behavior for selector, which the schema also already states, providing no meaningful extra semantics.

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?

Description clearly states the tool reads innerText of the element matching a CSS selector, defaulting to the whole body. This precisely distinguishes it from siblings like get_screenshot, get_dom_snapshot, and get_console.

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?

No guidance is given about when to use this tool versus alternatives such as get_dom_snapshot or get_console. The description only explains mechanics, not selection criteria or context.

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

Install Server

Other Tools

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/kirakiray/web-bridge-mcp'

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