Skip to main content
Glama
nfodor

Chromium ARM64 Browser

by nfodor

hover

Simulate mouse hover interactions on web elements using CSS selectors for browser automation and testing workflows.

Instructions

Hover over an element on the page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector for the element to hover

Implementation Reference

  • The handler function for the 'hover' tool. It ensures Chromium is running, queries the DOM for the element using the provided CSS selector, calculates the center position of the element, and dispatches a 'mouseMoved' input event to simulate hovering.
    async hover(selector) {
      await this.ensureChromium();
      
      const doc = await this.sendCDPCommand('DOM.getDocument');
      const element = await this.sendCDPCommand('DOM.querySelector', {
        nodeId: doc.root.nodeId,
        selector
      });
      
      if (!element.nodeId) {
        throw new Error(`Element not found: ${selector}`);
      }
    
      const box = await this.sendCDPCommand('DOM.getBoxModel', { nodeId: element.nodeId });
      const quad = box.model.content;
      const x = (quad[0] + quad[4]) / 2;
      const y = (quad[1] + quad[5]) / 2;
    
      await this.sendCDPCommand('Input.dispatchMouseEvent', {
        type: 'mouseMoved',
        x, y
      });
      
      return {
        content: [{ type: 'text', text: `Hovered over element: ${selector}` }],
      };
    }
  • Input schema definition for the 'hover' tool, specifying that it requires a 'selector' property of type string.
    inputSchema: {
      type: 'object',
      properties: {
        selector: {
          type: 'string',
          description: 'CSS selector for the element to hover',
        },
      },
      required: ['selector'],
    },
  • index.js:199-212 (registration)
    Registration of the 'hover' tool in the ListTools response, including name, description, and input schema.
    {
      name: 'hover',
      description: 'Hover over an element on the page',
      inputSchema: {
        type: 'object',
        properties: {
          selector: {
            type: 'string',
            description: 'CSS selector for the element to hover',
          },
        },
        required: ['selector'],
      },
    },
  • index.js:363-364 (registration)
    Dispatch/registration of the 'hover' tool handler in the CallToolRequestSchema switch statement.
    case 'hover':
      return await this.hover(args.selector);
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. 'Hover over' implies a non-destructive interaction that simulates mouse movement, but the description doesn't clarify what happens after hovering (e.g., whether it waits for hover effects to complete, what visual feedback occurs, or if it triggers JavaScript events). For a browser interaction tool with zero annotation coverage, this leaves significant behavioral questions unanswered.

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?

The description is extremely concise at just 6 words, with zero wasted language. It's front-loaded with the core action and target. Every word earns its place by conveying essential information about what the tool does without unnecessary elaboration.

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

Completeness2/5

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

Given the complexity of browser interaction tools and the absence of both annotations and output schema, the description is insufficiently complete. It doesn't explain what constitutes successful hovering, what errors might occur (e.g., element not found), what visual or state changes to expect, or how this interacts with other browser tools. For a tool that simulates user interactions, more context about behavior and outcomes is needed.

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% with the single parameter 'selector' fully documented in the schema. The description doesn't add any parameter-specific information beyond what's in the schema. According to scoring rules, when schema_description_coverage is high (>80%), the baseline is 3 even with no param info in the description, which applies here.

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 clearly states the action ('hover over') and target ('an element on the page'), providing a specific verb+resource combination. It distinguishes itself from siblings like 'click' or 'select' by focusing on hover interactions rather than clicks or selections. However, it doesn't explicitly differentiate from all possible sibling interactions beyond the basic verb distinction.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when hovering is appropriate (e.g., for triggering dropdowns, tooltips, or hover states) versus when to use 'click' or other interaction tools. There's no discussion of prerequisites, timing considerations, or alternative approaches for similar outcomes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nfodor/mcp-chromium-arm64'

If you have feedback or need assistance with the MCP directory API, please join our Discord server