Skip to main content
Glama

Hover over an element and hold

qa_hover

Holds the pointer on an element to reveal hover-only UI such as menus, tooltips and hidden row actions, then reports what appeared, waits for delayed tooltips, and can remove the pointer to confirm they disappear.

Instructions

Put the pointer on an element AND LEAVE IT THERE, then report what that revealed: a menu that opens on hover, a tooltip, the actions a row only shows under the pointer, the value a chart reads out beneath it. qa_click cannot answer any of those — it presses a millisecond after it hovers, and the press closes what the hover opened. It holds for holdMs (500 by default) before measuring, because tooltips wait — measuring at once reports "no tooltip" about one that was always going to appear. The reply carries the usual changed diff plus tooltip (role=tooltip, aria-describedby or title, whichever exists) and expanded when the control changed its aria-expanded. ONE FACT TO READ CAREFULLY: cssHover says whether the browser's own :hover matched. Dispatched events run the page's JavaScript handlers — every menu and tooltip library — but they do not move the real cursor, so an effect written PURELY in CSS does not appear and cssHover comes back false. That is the tool being honest, not the page being broken. With trusted input switched on the real pointer moves, cssHover is true, and CSS-only hovers light up too. Call it again with off: true to take the pointer away — "the tooltip disappears" is the other half of the check, and it needs its own call. Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.

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": "qa_hover"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoWithout ref/selector: CSS pixels from the LEFT of the viewport. WITH one: an offset inside the element, for a chart or a split control where the middle is the wrong place.
yNoWithout ref/selector: CSS pixels from the TOP of the viewport. WITH one: an offset inside the element.
offNoTake the pointer AWAY from whatever it is on, and report what was left. No target needed.
refNoA ref from qa_snapshot (e.g. "e12") — preferred over selector
tabIdNoTarget tab (from qa_tabs); omit for the active tab
holdMsNoHow long to hold the pointer there before measuring (0–10000, default 500)
selectorNoCSS selector of the element to hover

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does: it discloses the consent-required failure mode, the holdMs-before-measuring timing behavior, the returned fields (`changed`, `tooltip`, `expanded`), and the critical limitation that dispatched events don't move the real cursor so CSS-only `:hover` effects yield `cssHover: false` unless trusted input is on. That last point is exactly the kind of behavioral surprise an agent would otherwise misdiagnose as a broken page.

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 core action and the sibling distinction, and most sentences carry load-bearing information. It is on the long side, with emphatic staging ('ONE FACT TO READ CAREFULLY') and some repetition about JS handlers versus real cursor movement, but no sentence is pure filler.

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 a 7-parameter, zero-annotation tool with no output schema, the definition covers the returned fields, the timing semantics, the trusted-input escape hatch, and the consent gate. Nothing an agent needs in order to call it correctly or interpret an unexpected `cssHover: false` is missing.

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 meaning the schema does not: it explains why `holdMs` exists (tooltips wait; measuring at once reports a false 'no tooltip') and supplies the default, and frames `off: true` as a distinct verification step rather than a flag. It adds little about `x`/`y`, which the schema already documents thoroughly.

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+resource in caps ('Put the pointer on an element AND LEAVE IT THERE') and explicitly contrasts with the nearest sibling: qa_click 'presses a millisecond after it hovers, and the press closes what the hover opened.' An agent can distinguish qa_hover from qa_click without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use cases (menu on hover, tooltip, row actions, chart readout), an explicit when-not-to (qa_click), and a separate required call pattern ('Call it again with `off: true` to take the pointer away') because disappearance is 'the other half of the check.' It also states the consent prerequisite that blocks the call entirely.

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