Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_text

Extract visible text from a browser tab or specific page element, excluding hidden content and truncating at a set character limit with a note.

Instructions

Visible text of the page or of target; hidden text is left out. Cut at maxChars with a note.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tabId": "<tabId>"
    },
    "name": "browser_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes
targetNoTarget.
maxCharsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

C2.9/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 burden. It does disclose two useful traits: hidden text is omitted, and output is truncated at maxChars with an appended note. However it omits other behavior an agent needs – whether text is in DOM order, how blocks are joined, what happens if the target isn't found, and whether it waits for load.

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 short, front-loaded sentences with no filler. The telegraphic phrasing ('Cut at maxChars with a note') is slightly clipped but still parseable, so nothing needs removing.

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 tool with no annotations and no output schema, the description covers the return type and truncation but leaves the target selector's structure, tabId, and error/empty-result behavior unexplained. Adequate but with clear gaps.

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 coverage is 33%: tabId and maxChars are undocumented in the schema. The description partially compensates by explaining maxChars truncation-and-note behavior and by framing 'target' as a scope selector, but it never explains target's role/name shape or what tabId identifies.

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 the specific resource produced – visible page text, with hidden text excluded – and that it can be scoped to 'the page or of target'. There's no verb ('extract'/'read') and no explicit differentiation from siblings like browser_snapshot or browser_inspect_element, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no mention of alternatives. An agent must infer that this is the tool for reading rendered text versus taking a structural snapshot or evaluating JS; the description never says so.

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