Skip to main content
Glama

Hover

hover

Moves the pointer onto an element, canvas text, or view point and leaves it there, returning any menu or tooltip that appears.

Instructions

Moves the pointer onto the element, to a place in the canvas text in view (text_before, text_after), or to a point of the view (x, y), and leaves it there; answers with what appeared (a menu, a tooltip).

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

Input Schema

NameRequiredDescriptionDefault
xNoA point to move to instead of an element, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.
yNoIts y, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.
idNoAn element id from a listing, such as a12.
text_afterNoThe text that begins at the place.
snapshot_idNoThe snapshot whose image the point was read off (s3): the point is then in that image's pixels, which view's note gives when they are not the view's CSS pixels. It must be of this tab's current page.
text_beforeNoAim by the canvas text in view: the place where this text ends (with text_after, where text_after begins). It must read so in exactly one place; whitespace counts as one space.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.2
    • addedInput schema / properties / snapshot_id
      Added value: +{
      +  "description": "The snapshot whose image the point was read off (s3): the point is then in that image's pixels, which view's note gives when they are not the view's CSS pixels. It must be of this tab's current page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_after
      Added value: +{
      +  "description": "The text that begins at the place.",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_before
      Added value: +{
      +  "description": "Aim by the canvas text in view: the place where this text ends (with text_after, where text_after begins). It must read so in exactly one place; whitespace counts as one space.",
      +  "type": "string"
      +}
    • addedInput schema / properties / x
      Added value: +{
      +  "description": "A point to move to instead of an element, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.",
      +  "type": "number"
      +}
    • addedInput schema / properties / y
      Added value: +{
      +  "description": "Its y, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.",
      +  "type": "number"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose two important traits: the pointer persists where it was left, and the call returns whatever the hover revealed. It does not cover failure modes (element missing, ambiguous text anchor), whether the element is scrolled into view, or how long the resulting menu/tooltip stays valid for follow-up calls.

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: the action comes first, then the target variants, then the result. The semicolon-separated clauses are dense but readable, and there is no filler or repetition.

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

Completeness3/5

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

For a six-parameter tool with no output schema and no annotations, the description covers the action and the returned observation but leaves the return shape, ambiguity/error handling, and post-hover liveness unstated. It is adequate to attempt a call but not to predict its outcome reliably.

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 coverage is 100%, so every parameter already has its own description and the baseline is 3. The description adds the useful framing that element id, text anchors, and x/y are alternative rather than combined targeting modes, but it adds no syntax or precedence detail beyond the schema.

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 opens with a concrete verb and resource ('Moves the pointer onto the element... and leaves it there') and enumerates the three targeting modes (element id, canvas text, view point). It implies a non-clicking interaction by contrasting 'leaves it there' with its returned observations, but it never names `click` or `scroll` to sharpen the distinction.

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?

Use is implied by the stated payoff ('answers with what appeared (a menu, a tooltip)'), which suggests revealing hover-triggered UI. There is no explicit when-to-use, when-not-to-use, or prerequisite guidance (e.g., element must be in view, prefer `click` for activating controls), so the agent must infer the selection rule.

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