Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_click

Clicks elements with real mouse events, scrolling them into view first and reporting navigation or new tabs. Use refs, selectors, or viewport coordinates; covered targets fail with an explanation.

Instructions

Click an element with a real mouse event (scrolls it into view first). Target by ref (from browser_snapshot), selector, or x/y viewport coordinates. Reports navigation and any new tabs the click opened. Fails with an explanation if another element (e.g. a modal) covers the target.

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
refNoElement ref from browser_snapshot, e.g. "e12". Preferred over selector.
forceNoClick via element.click() even if covered/hidden.
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
buttonNo
selectorNoCSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too.
doubleClickNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the load and does well: it discloses real mouse-event simulation, scroll-into-view, navigation and new-tab reporting, and a clear failure mode for obscured targets. It omits timing/waiting behavior and does not explain that the covered-target failure can be bypassed with force.

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?

Four tight sentences, no filler, with the core action and the targeting method front-loaded before the reporting and failure notes. Every sentence contributes information an agent needs.

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 an 8-parameter interaction tool with no annotations and no output schema, describing what the call reports (navigation, new tabs) is exactly the right compensation. Remaining gaps are secondary modifiers (button, doubleClick, tabId) that leave an agent guessing at their defaults.

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?

At 50% schema coverage, the description adds real meaning for the targeting parameters (ref sourced from browser_snapshot, coordinate-based clicking) and implicitly motivates force via the covered-element failure. However, button, doubleClick, and tabId get no explanation in either place, so half the surface remains thin.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Click an element with a real mouse event") plus the exact targeting modes (ref, selector, x/y). The pairing with browser_snapshot for refs makes it unambiguous versus siblings like browser_hover or browser_press_key.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives clear context for invocation: choose ref from browser_snapshot, selector, or coordinates, and it documents the failure mode when an element is covered. It stops short of explicitly stating when to prefer browser_hover, browser_press_key, or browser_evaluate instead, so exclusions are missing.

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