Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_hover

Move the mouse over a page element to open hover menus or tooltips, or to check :hover styles, using an element ref, CSS selector, visible text, or XPath.

Instructions

Move the mouse over an element (to open hover menus or tooltips, or check :hover styles).

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
refNoElement ref from browser_snapshot, e.g. "e12". Preferred over selector.
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
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

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that hovering can open menus or tooltips, which is a real side effect an agent should anticipate, but says nothing about scrolling the element into view, waiting, timeouts, or what is returned.

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 with the action first and the reasons in parentheses; nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Five parameters, no annotations, no output schema, and 60% schema coverage leave meaningful gaps: the coordinate mode, the required prior snapshot for refs, and whether the call confirms the hover succeeded are all unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60% and the description adds nothing about parameters. Crucially, it never mentions the coordinate pair (x, y) or when to prefer ref over selector, leaving the least-documented parameters entirely unexplained in prose.

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 ("Move the mouse over an element") and adds the parenthetical intent (hover menus, tooltips, :hover styles). That distinguishes it from browser_click and browser_press_key well enough, though it never names a sibling.

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?

Names three concrete purposes for hovering, which implies when to reach for it, but gives no when-not guidance, no mention that browser_click is the alternative for activation, and no prerequisites (e.g. needing a ref from browser_snapshot).

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