donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
29 lines • 1.23 kB
TypeScript
import type { ElementHandle } from 'playwright';
import { z } from 'zod/v4';
import type { ToolCallContext } from '../models/ToolCallContext';
import { ReplayableInteraction } from './ReplayableInteraction';
export declare const PressKeyCoreSchema: z.ZodObject<{
key: z.ZodString;
}, z.core.$strip>;
export declare const PressKeyNonGptSchema: z.ZodObject<{
key: z.ZodString;
selector: z.ZodObject<{
element: z.ZodArray<z.ZodString>;
frame: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const PressKeyGptSchema: z.ZodObject<{
key: z.ZodString;
whyThisAnnotation: z.ZodString;
annotation: z.ZodString;
rationale: z.ZodString;
}, z.core.$strip>;
export declare class PressKeyTool extends ReplayableInteraction<typeof PressKeyCoreSchema, typeof PressKeyNonGptSchema, typeof PressKeyGptSchema> {
static readonly NAME = "pressKey";
constructor();
invoke(context: ToolCallContext, parameters: z.infer<typeof PressKeyCoreSchema>, handles: {
target: ElementHandle<HTMLElement | SVGElement>;
label?: ElementHandle<HTMLElement | SVGElement>;
}): Promise<string>;
}
//# sourceMappingURL=PressKeyTool.d.ts.map