Skip to main content
Glama

browser_extract_text

Extracts clean visible text from the current browser page or a CSS selector, removing HTML clutter so you can read articles, tables, and portal content.

Instructions

Extract clean visible text from the current page (or a specific CSS selector) — ideal for reading articles, abstracts, tables, or institutional portal pages without raw HTML bloat.

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

Input Schema

NameRequiredDescriptionDefault
tab_idNoTarget tab id from browser_tabs.
selectorNoOptional CSS selector to scope extraction (defaults to document.body).
max_charsNoMax characters to return (default: 30000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does signal that output is cleaned visible text rather than raw HTML, which is meaningful. But it does not state that the operation is read-only/non-mutating, whether hidden or off-screen text is excluded, or how truncation at max_chars manifests in the result.

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: what it does first, optional scoping second, use cases last. No redundant restatement of the tool name and nothing that could be cut without losing information.

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 3-parameter, all-optional read tool with full schema coverage and no output schema, the description covers the core behavior adequately. It is silent on truncation behavior and on whether navigation/JS execution is required before extraction, which an agent would want to know.

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 tab_id, selector, and max_chars are already documented, and the description only echoes the selector scoping already in the schema. Baseline 3 applies since the schema does the heavy lifting and no extra semantics (e.g., selector matching multiple elements) are added.

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 ("Extract clean visible text") plus the scope (current page or a CSS selector), so the agent knows exactly what it gets. It does not distinguish itself from siblings like browser_snapshot or browser_evaluate, which could also surface page content, so it falls 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 phrase "ideal for reading articles, abstracts, tables, or institutional portal pages without raw HTML bloat" gives positive use-case context. However, it never says when NOT to use it or names an alternative tool for structured/HTML extraction, so the routing guidance is only implied.

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