Skip to main content
Glama

pilot_hover

Hover over webpage elements using CSS selectors or element references to trigger interactive features or inspect dynamic content.

Instructions

Hover over an element by @ref or CSS selector.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYesElement ref (@e3) or CSS selector

Implementation Reference

  • The handler for the 'pilot_hover' tool, implemented within the `registerInteractionTools` function. It resolves the element reference and performs the hover action using Playwright.
    server.tool(
      'pilot_hover',
      'Hover over an element by @ref or CSS selector.',
      { ref: z.string().describe('Element ref (@e3) or CSS selector') },
      async ({ ref }) => {
        await bm.ensureBrowser();
        try {
          const resolved = await bm.resolveRef(ref);
          if ('locator' in resolved) {
            await resolved.locator.hover({ timeout: 5000 });
          } else {
            await bm.getPage().hover(resolved.selector, { timeout: 5000 });
          }
          bm.resetFailures();
          return { content: [{ type: 'text' as const, text: `Hovered ${ref}` }] };
        } catch (err) {
          bm.incrementFailures();
          return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true };
        }
      }
    );
  • Registration of 'pilot_hover' as part of the 'standard' toolset.
    'pilot_hover', 'pilot_select_option', 'pilot_scroll', 'pilot_drag',

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/TacosyHorchata/Pilot'

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