Skip to main content
Glama

browsercat_hover

Hover over webpage elements using CSS selectors to trigger interactive features or reveal hidden content during automated web browsing sessions.

Instructions

Hover over an element on the page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector for element to hover

Implementation Reference

  • Handler implementation for the browsercat_hover tool. It waits for the CSS selector to appear, hovers over the element using Puppeteer's page.hover method, and returns a success message or error if failed.
    case "browsercat_hover": try { await page.waitForSelector(args.selector); await page.hover(args.selector); return { content: [{ type: "text", text: `Hovered ${args.selector}`, }], isError: false, }; } catch (error) { return { content: [{ type: "text", text: `Failed to hover ${args.selector}: ${(error as Error).message}`, }], isError: true, }; }
  • index.ts:89-99 (registration)
    Registration of the browsercat_hover tool in the TOOLS array, including its name, description, and input schema.
    { name: "browsercat_hover", description: "Hover over an element on the page", inputSchema: { type: "object", properties: { selector: { type: "string", description: "CSS selector for element to hover" }, }, required: ["selector"], }, },
  • Input schema definition for browsercat_hover tool, specifying the required 'selector' property.
    inputSchema: { type: "object", properties: { selector: { type: "string", description: "CSS selector for element to hover" }, }, required: ["selector"], },

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/pipethedev/browsercat-mcp-server'

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