Skip to main content
Glama

page.hover

Moves the mouse over a selected element to trigger hover styles, menus, and hover-dependent UI during browser automation.

Instructions

Move the mouse over an element, triggering hover styles and menus.

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": "page.hover"
  }
}

Input Schema

NameRequiredDescriptionDefault
nthNoZero-based index when the locator matches several elements.
refNoSnapshot ref (eNN) from page.snapshot.
textNoVisible text of the element.
xpathNoXPath expression.
frame_idNoFrame to search within; see page.list_frames.
selectorNoCSS selector; pierces shadow DOM.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
backend_node_idNoCDP backendNodeId, e.g. from inspector.pick.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, so the description carries most of the load for behavior. It usefully discloses the side effect (hover styles and menus become active), but says nothing about auto-scrolling the element into view, actionability waits, timeouts, or how long the hover state persists, which matters for a state-changing browser interaction.

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?

A single front-loaded sentence with no wasted words: the action comes first and the effect second. It is efficient, though its brevity contributes to the gaps noted in other dimensions.

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?

For a nine-parameter browser interaction tool with only two annotations and no output schema, the description leaves out too much: element resolution among competing locator params, auto-scroll and wait behavior, and what the caller gets back. An agent can guess intent but not the mechanics of invocation.

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% across all nine locator parameters, so the schema already explains each one and the baseline of 3 applies. The description adds no meaning about locator precedence or resolution when multiple identifiers (ref, text, xpath, selector, backend_node_id) are supplied.

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?

The description names a specific action and target: 'Move the mouse over an element.' It also states the observable effect ('triggering hover styles and menus'), which goes beyond restating the name. It does not distinguish itself from adjacent tools like page.pointer or page.click, 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 Guidelines3/5

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

The phrase 'triggering hover styles and menus' implies the situation in which you would call this tool (revealing hover-only UI), but there is no explicit when-to-use, when-not-to-use, or named alternative such as page.pointer for raw mouse movement. Guidance is implied rather than stated.

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

Deploy Server

Other Tools