Skip to main content
Glama
Playwright MCP Server

Playwright MCP Server

by sohitmahato

playwright_hover

Hover over an element using a CSS selector to reveal tooltips, dropdown menus, or hover-triggered UI states during browser automation.

Instructions

Hover over an element

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": {
      "selector": "<selector>"
    },
    "name": "playwright_hover"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYesCSS selector of element to hover

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it discloses almost nothing. It does not say whether hover triggers hover-only CSS/JS behavior, what happens if the selector matches nothing or is hidden, whether it waits for the element, or whether it returns anything. For a browser-driving tool with zero annotation coverage this is a substantial gap.

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?

One short, front-loaded sentence with zero padding and no redundant restatement of the parameter. It is efficient, though the terseness reflects under-specification rather than deliberate brevity.

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?

The tool is simple, has one fully documented parameter, and no output schema, so a short description is defensible. However, it omits the browser-state prerequisites and failure behavior an agent needs to invoke it reliably in a multi-step Playwright flow.

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%, and the single selector parameter is already documented in-schema as 'CSS selector of element to hover'. The description adds no syntax, format, or matching-semantics detail beyond that, so baseline 3 applies.

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 states a specific verb (hover) and resource (an element identified by CSS selector), which is clear on its own. It does not differentiate from siblings such as playwright_click or playwright_drag_and_drop, so an agent must infer that this tool performs hover only, not a click-based interaction.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus the many sibling interaction tools (click, drag_and_drop, press_key), nor any stated preconditions such as requiring a prior navigate or wait_for_selector. Usage is implied only by the tool name and the one-line description.

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