Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_type

Types text into input, textarea, or contenteditable elements, replacing or appending values and optionally pressing Enter. Handles React/Vue controlled fields.

Instructions

Type text into an input, textarea or contenteditable. Replaces the current value by default (clear:false to append). Works with React/Vue controlled inputs. submit:true presses Enter afterwards.

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": {
      "text": "<text>"
    },
    "name": "browser_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from browser_snapshot, e.g. "e12". Preferred over selector.
textYes
clearNo
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
slowlyNoType one character at a time (for autocomplete widgets).
submitNo
selectorNoCSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

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, and it does disclose the most important behavior: the existing value is replaced by default, clear:false appends, and controlled React/Vue inputs are handled. It does not say whether the element is scrolled into view or focused, whether it waits for the element to exist, what happens if the ref is stale, or what a call 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?

Four short clauses, front-loaded with the core action and targets, then defaults and edge cases. Nearly every phrase carries information; only the React/Vue sentence lacks detail about what specifically is handled.

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 7-parameter interaction tool with no annotations or output schema, the definition covers the critical semantics: default replacement behavior, append mode, framework compatibility, and the Enter shortcut. It is thin only on failure modes and preconditions (visibility, focus, ref freshness) that an agent would want before calling.

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 57%, and the description adds genuine meaning for two undocumented parameters: clear (default replace vs. append) and submit (presses Enter). The remaining parameters (slowly, tabId, selector) are explained only by the schema, so the description adds partial but not compensating value.

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 (type text) and specific targets (input, textarea, contenteditable), so the agent immediately knows the resource. It implicitly distinguishes itself from browser_press_key by noting submit:true presses Enter afterwards, but never names a sibling or an alternative tool 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: React/Vue controlled inputs work, append via clear:false, and submit:true for Enter. There is no explicit statement of when to prefer this over browser_click/browser_press_key or browser_select_option, and no prerequisites such as needing a ref from browser_snapshot first (that is only buried in the ref parameter description).

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