Skip to main content
Glama

safari_native_hover

Moves the real macOS cursor over an element to fire true native hover and mouseenter events, so tooltips that ignore JS-dispatched events still appear. Dwells, then restores the cursor.

Instructions

OS-level mouse hover via macOS CGEvent — moves the real cursor to an element to trigger native :hover / mouseenter handlers. Use for obfuscated UIs where JS-dispatched mouseenter isn't enough, like Discord server sidebars (tooltips only appear on real hover) or portal-rendered tooltips. After hover, call safari_wait_for or safari_evaluate to read the tooltip. Dwells for dwellMs to let tooltips render, then restores the original cursor position by default. Requires Safari window to be visible.

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

Input Schema

NameRequiredDescriptionDefault
xNoViewport X coordinate
yNoViewport Y coordinate
refNoRef ID from safari_snapshot
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
textNoVisible text to find and hover
dwellMsNoMilliseconds to dwell over the element so tooltips render (clamped 0-5000)
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector
restoreMouseNoRestore cursor to original position after dwell

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the dwell behavior (dwellMs so tooltips render), the default cursor restoration, the visibility requirement, and the required post-call read step. Gaps remain around failure behavior when an element is not found or when the window is occluded, and there is no note on latency cost of moving the real OS cursor.

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?

Front-loaded with the mechanism, then the use case, then the follow-up action, then side effects. Four sentences, each carrying distinct information, with no repeated or filler content.

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

Completeness4/5

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

Covers the meaningful behavior for a side-effecting OS-level input tool: dwell, restore, visibility, and what to call next. It falls short only on parameter precedence among the four targeting modes and on error conditions, for a tool with nine parameters and no output schema.

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%, so all nine parameters are already documented, which sets the baseline at 3. The description restates dwellMs purpose and the restoreMouse default, but adds no guidance on the targeting parameters (x/y vs ref vs selector vs text), which is the real ambiguity in this 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?

States a specific verb and resource ('OS-level mouse hover'), names the mechanism (macOS CGEvent, real cursor) and the exact handlers it triggers (:hover / mouseenter). It implicitly separates itself from JS-dispatched hovering, but never names the sibling tool (safari_hover) it is meant to replace, so the differentiation requires inference from the 'JS-dispatched mouseenter isn't enough' clause.

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 concrete when-to-use conditions (obfuscated UIs, Discord server sidebars, portal-rendered tooltips) and explains why the simpler approach fails. It also prescribes the follow-up sequence: call safari_wait_for or safari_evaluate to read the tooltip afterwards, plus the prerequisite that the Safari window must be visible.

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