UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

15 lines 857 B
import type { ElementHandle } from 'playwright'; import type { z } from 'zod/v4'; import type { ToolCallContext } from '../models/ToolCallContext'; import { NoArgsSchema } from '../models/ToolSchema'; import { AnnotationBasedSchema, ReplayableInteraction, SelectorBasedSchema } from './ReplayableInteraction'; export declare class HoverOverElementTool extends ReplayableInteraction<typeof NoArgsSchema, typeof SelectorBasedSchema, typeof AnnotationBasedSchema> { static readonly NAME = "hoverOverElement"; static readonly HOVER_DURATION_MS = 1000; constructor(); invoke(context: ToolCallContext, _parameters: z.infer<typeof NoArgsSchema>, handles: { target: ElementHandle<HTMLElement | SVGElement>; label?: ElementHandle<HTMLElement | SVGElement>; }): Promise<string>; } //# sourceMappingURL=HoverOverElementTool.d.ts.map