UNPKG

donobu

Version:

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

36 lines 1.55 kB
import { z } from 'zod/v4'; import type { ToolCallContext } from '../models/ToolCallContext'; import type { ToolCallResult } from '../models/ToolCallResult'; import { Tool } from './Tool'; export declare const DEFAULT_TIMEOUT_MILLIS = 30000; export declare const DEFAULT_WAIT_UNTIL = "load"; export declare const GoToWebpageToolCoreParameters: z.ZodObject<{ url: z.ZodString; timeout: z.ZodOptional<z.ZodNumber>; waitUntil: z.ZodOptional<z.ZodEnum<{ load: "load"; domcontentloaded: "domcontentloaded"; networkidle: "networkidle"; commit: "commit"; }>>; }, z.core.$strip>; export declare const GoToWebpageToolGptParameters: z.ZodObject<{ url: z.ZodString; timeout: z.ZodOptional<z.ZodNumber>; waitUntil: z.ZodOptional<z.ZodEnum<{ load: "load"; domcontentloaded: "domcontentloaded"; networkidle: "networkidle"; commit: "commit"; }>>; rationale: z.ZodString; }, z.core.$strip>; /** Directly navigate to the specified URL. */ export declare class GoToWebpageTool extends Tool<typeof GoToWebpageToolCoreParameters, typeof GoToWebpageToolGptParameters> { static readonly NAME = "goToWebpage"; private static readonly VALID_PROTOCOLS; constructor(); call(context: ToolCallContext, parameters: z.infer<typeof GoToWebpageToolCoreParameters>): Promise<ToolCallResult>; callFromGpt(context: ToolCallContext, parameters: z.infer<typeof GoToWebpageToolGptParameters>): Promise<ToolCallResult>; } //# sourceMappingURL=GoToWebpageTool.d.ts.map