Skip to main content
Glama

Hover in browser

browser_hover
Idempotent

Move the pointer over a page element to open menus, submenus, or tooltips without clicking, even in background tabs. Target by element index or page coordinates.

Instructions

Rest the agent's pointer on an element in one of the agent's tabs, by its browser_snapshot index (preferred) or at a point in page coordinates, to open a menu, submenu or tooltip that appears on hover. Nothing is pressed. Works on a background tab with real (trusted) mouse movement, without selecting the tab or raising its window; the element is scrolled into view and checked the way browser_click checks it, and when something else covers it the call fails, naming what is in front. Pass return_state with wait_for_selector to see what the hover opened in the same call. Use hover for native app windows.

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": {
      "tab_id": "<tab_id>"
    },
    "name": "browser_hover"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoPage x coordinate in CSS pixels, used together with y when no index is given
yNoPage y coordinate in CSS pixels, used together with x when no index is given
indexNoElement index from the latest browser_snapshot of this tab. Preferred over coordinates.
tab_idYestab_id of one of the agent's tabs, from browser_open_tab or browser_list_tabs
session_idNoStable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session.
return_stateNoAppend a current snapshot and readiness status after acting. Without wait_for_selector, only a short pause and bounded navigation wait are used; SPA readiness is not guaranteed. Snapshot indices replace earlier ones. A timeout does not mean the action failed: re-observe with browser_snapshot before repeating it.
wait_timeout_msNoBound for wait_for_selector in milliseconds (default 8000, maximum 10000; 0 checks once). Requires wait_for_selector. Timeout preserves action success and returns current state. Use browser_snapshot with the same wait to re-observe without repeating an action.
wait_for_selectorNoWait for any visible element matching this CSS selector in the page or any of its frames (iframes), including open shadow roots (web components); a timeout says how many frames could not be searched. On actions requires return_state=true. Returns readiness met, timeout or error; only this condition is checked, not general app readiness. Prefer a selector specific to the expected new UI.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark it non-destructive and idempotent; the description goes much further, disclosing that it works on a background tab with trusted mouse movement without selecting or raising the window, scrolls the element into view, runs the same occlusion check as browser_click, and fails naming what is covering the element.

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?

Front-loaded with the action and addressing modes, then behavioral caveats. Dense and mostly earned, though the single long middle sentence packs several distinct behaviors (background-tab behavior, scrolling, occlusion) into one run-on.

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

Completeness5/5

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

For an eight-parameter tool with no output schema, the description covers invocation modes, non-destructive semantics, failure behavior, background-tab execution, and how to observe results. An agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: index is preferred over coordinates, and return_state plus wait_for_selector combine to reveal what the hover opened in the same call. It reinforces rather than duplicates the schema.

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 (rest the pointer) plus the resource (an element in one of the agent's tabs), the two addressing modes (snapshot index preferred, or x/y coordinates), and the purpose (reveal menus, submenus, tooltips). It also distinguishes itself from the sibling hover tool, which covers native app windows.

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?

Explicitly says to use hover for native app windows and this tool for browser elements, and tells the agent to combine return_state with wait_for_selector to observe what the hover opened. It does not spell out when to prefer browser_click instead, but 'nothing is pressed' implies the boundary.

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