Skip to main content
Glama

browser_text

Read-onlyIdempotent

Extract visible page text from a chosen tab or frame, limit output length, and target a CSS selector or strip nav/header/footer/aside to reduce clutter.

Instructions

Read visible innerText. Pass main_only=true (strips nav/header/footer/aside) or selector='' to avoid clutter.

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

Input Schema

NameRequiredDescriptionDefault
maxNoMax chars (default 6000).
tabNoTab index string (e.g. '0'), targetId, or URL/title substring.
frameNoIframe #fN, id, URL substring, or 'any'.
selectorNoContainer CSS selector (pierces shadow roots).
main_onlyNoStrip nav/header/footer/aside clutter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context by specifying that only *visible* innerText is returned and that main_only strips specific element types. It omits truncation behavior despite a max-chars default and says nothing about what an empty or non-rendered page returns.

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?

Two compact sentences with the core action front-loaded and configuration hints after it. Nothing is wasted, though the parenthetical clutter list duplicates the schema instead of spending those words on the silent truncation default.

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 zero-required-parameter read tool with full schema coverage and a rich annotation set, the definition covers the essentials. The notable gap is truncation: with max defaulting to 6000 chars, an agent calling this on a long page has no warning that output may be cut off, and there is no output schema to communicate that instead.

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 every parameter is already documented in the schema, establishing a baseline of 3. The description restates main_only's effect (nav/header/footer/aside stripping) and selector's purpose, but adds no format, precedence, or interaction detail (e.g. what happens when both main_only and selector are set).

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 visible innerText'. The word 'visible' and 'innerText' meaningfully narrows it against DOM/HTML-reading siblings such as browser_dom or browser_snapshot. It does not name an alternative or explicitly contrast with them, so it stops short of a 5.

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?

The guidance given ('pass main_only=true or selector=... to avoid clutter') is about how to configure the call, not when to choose this tool over browser_dom, browser_snapshot, or browser_eval. Usage is implied by the name and verb rather than explicitly stated, which puts it at the minimum-viable level.

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