Skip to main content
Glama

chrome_get_text

Extracts the visible text content of a Chrome page or a specific element using a CSS selector, letting AI agents read rendered page content for inspection and extraction.

Instructions

Get the visible text content of the page or an element

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

Input Schema

NameRequiredDescriptionDefault
tabIdNo
selectorNoCSS selector (default: body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and the one substantive disclosure is that only *visible* text is returned—useful, since it explains why hidden nodes and markup are excluded. It says nothing about what happens with a non-matching selector, whether it waits for load, how frames/shadow DOM are handled, or what the tool returns on an empty page.

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

Conciseness4/5

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

A single lean sentence with the resource front-loaded and no filler. It is efficient rather than padded, though the brevity comes at the cost of any guidance or return-value context.

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

Completeness3/5

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

For a simple two-parameter read tool with no output schema, the description covers the core action but omits what the result looks like (raw text string? length limits?) and how errors surface. An agent could invoke it, but not predict the response shape from the definition alone.

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 50%: selector documents its CSS syntax and body default, while tabId is undocumented in both schema and description. The phrase "page or an element" does map onto the two calling modes (no selector vs. selector), which adds some meaning beyond the schema, but tabId's role—and whether target tab defaults—is left unclear.

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?

"Get the visible text content of the page or an element" states a specific verb (get) and resource (visible text content), and the "or an element" clause signals the two extraction modes. It implicitly distinguishes itself from html-oriented siblings such as chrome_get_html, though it never names an alternative explicitly.

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?

Usage is only implied: an agent can infer that omitting a selector reads the whole page and supplying one scopes to an element. There is no explicit when-to-use versus chrome_get_html or chrome_get_page_info, and no when-not guidance or preconditions (e.g., page must be loaded, tab must exist).

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