/** * Chrome Control Tools * * Defines and exports all available tools for browser automation. * These tools are registered with the MCP server for remote invocation * by Large Language Models (LLMs) through the Model Context Protocol. * * This module organizes tools into categories based on their functionality: * - Browser management: Creating, listing, and closing browsers * - Tab management: Creating, listing, and closing tabs * - Navigation: Navigating to URLs and waiting for conditions * - Screenshots: Capturing visual information from pages * - Mouse interactions: Clicking, hovering, and moving the mouse * - Keyboard interactions: Typing, pressing keys, etc. * - Form interactions: Filling inputs, selecting options, etc. * - Cookie management: Getting, setting, and deleting cookies * - JavaScript execution: Running custom scripts in the browser * - Action chaining: Executing multiple operations in sequence * * @module tools * * @example * ```typescript * import { McpServer } from './mcp-server.js'; * import { registerTools } from './tools.js'; * * // Create a new server * const server = new McpServer(); * * // Register all tools with the server * registerTools(server); * ``` */ import { McpServer } from './mcp-server.js'; import { z } from 'zod'; /** * Browser management tools */ export declare const browserManagementTools: (import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { launchOptions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { launchOptions: z.ZodOptional>; }, never>, "strip", z.ZodTypeAny, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }>>>)[]; /** * Tab management tools */ export declare const tabManagementTools: (import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { launchOptions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { url: z.ZodOptional; }, "strip", z.ZodTypeAny, { url?: string | undefined; browserId?: string | undefined; tabId?: string | undefined; }, { url?: string | undefined; browserId?: string | undefined; tabId?: string | undefined; }>>)[]; /** * Navigation tools */ export declare const navigationTools: (import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { url: z.ZodString; waitUntil: z.ZodOptional>; timeout: z.ZodOptional; responseFormat: z.ZodOptional; fullPage: z.ZodOptional; pageText: z.ZodOptional; pageTitle: z.ZodOptional; elements: z.ZodOptional; attributes: z.ZodOptional>; includeText: z.ZodOptional; includeHTML: z.ZodOptional; }, "strip", z.ZodTypeAny, { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; }, { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; }>>; links: z.ZodOptional; inputs: z.ZodOptional; }, "strip", z.ZodTypeAny, { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; }, { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { url: string; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; responseFormat?: { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; } | undefined; tabId?: string | undefined; }, { url: string; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; responseFormat?: { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; } | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodOptional; xpath: z.ZodOptional; function: z.ZodOptional; navigation: z.ZodOptional; waitUntil: z.ZodOptional>; time: z.ZodOptional; timeout: z.ZodOptional; }, "strip", z.ZodTypeAny, { function?: string | undefined; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; selector?: string | undefined; xpath?: string | undefined; navigation?: boolean | undefined; time?: number | undefined; tabId?: string | undefined; }, { function?: string | undefined; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; selector?: string | undefined; xpath?: string | undefined; navigation?: boolean | undefined; time?: number | undefined; tabId?: string | undefined; }>>)[]; /** * Screenshot tools */ export declare const screenshotTools: import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { name: z.ZodString; selector: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; fullPage: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; browserId?: string | undefined; selector?: string | undefined; width?: number | undefined; height?: number | undefined; fullPage?: boolean | undefined; tabId?: string | undefined; }, { name: string; browserId?: string | undefined; selector?: string | undefined; width?: number | undefined; height?: number | undefined; fullPage?: boolean | undefined; tabId?: string | undefined; }>>[]; /** * Mouse interaction tools */ export declare const mouseTools: (import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; options: z.ZodOptional>; clickCount: z.ZodOptional; delay: z.ZodOptional; }, "strip", z.ZodTypeAny, { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; }, { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { selector: string; browserId?: string | undefined; options?: { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; } | undefined; tabId?: string | undefined; }, { selector: string; browserId?: string | undefined; options?: { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; } | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; }, "strip", z.ZodTypeAny, { selector: string; browserId?: string | undefined; tabId?: string | undefined; }, { selector: string; browserId?: string | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { action: z.ZodEnum<["move", "down", "up", "click"]>; x: z.ZodOptional; y: z.ZodOptional; button: z.ZodOptional>; clickCount: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "move" | "down" | "up" | "click"; browserId?: string | undefined; x?: number | undefined; y?: number | undefined; button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; tabId?: string | undefined; }, { action: "move" | "down" | "up" | "click"; browserId?: string | undefined; x?: number | undefined; y?: number | undefined; button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; tabId?: string | undefined; }>>)[]; /** * Keyboard interaction tools */ export declare const keyboardTools: import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { action: z.ZodEnum<["press", "down", "up", "type"]>; key: z.ZodOptional; text: z.ZodOptional; delay: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "type" | "down" | "up" | "press"; browserId?: string | undefined; text?: string | undefined; delay?: number | undefined; key?: string | undefined; tabId?: string | undefined; }, { action: "type" | "down" | "up" | "press"; browserId?: string | undefined; text?: string | undefined; delay?: number | undefined; key?: string | undefined; tabId?: string | undefined; }>>[]; /** * Form interaction tools */ export declare const formTools: (import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; value: z.ZodString; delay: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; selector: string; browserId?: string | undefined; delay?: number | undefined; tabId?: string | undefined; }, { value: string; selector: string; browserId?: string | undefined; delay?: number | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; selector: string; browserId?: string | undefined; tabId?: string | undefined; }, { value: string; selector: string; browserId?: string | undefined; tabId?: string | undefined; }>>)[]; /** * Cookie management tools */ export declare const cookieTools: import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { action: z.ZodEnum<["get", "set", "delete", "clear"]>; cookie: z.ZodOptional; path: z.ZodOptional; expires: z.ZodOptional; httpOnly: z.ZodOptional; secure: z.ZodOptional; sameSite: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; }, { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; }>>; names: z.ZodOptional>; }, "strip", z.ZodTypeAny, { action: "get" | "set" | "delete" | "clear"; browserId?: string | undefined; cookie?: { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; } | undefined; names?: string[] | undefined; tabId?: string | undefined; }, { action: "get" | "set" | "delete" | "clear"; browserId?: string | undefined; cookie?: { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; } | undefined; names?: string[] | undefined; tabId?: string | undefined; }>>[]; /** * Scripting tools */ export declare const scriptingTools: import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { script: z.ZodString; }, "strip", z.ZodTypeAny, { script: string; browserId?: string | undefined; tabId?: string | undefined; }, { script: string; browserId?: string | undefined; tabId?: string | undefined; }>>[]; /** * Action chaining tools */ export declare const chainingTools: import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { actions: z.ZodArray; params: z.ZodRecord; condition: z.ZodOptional; }, "strip", z.ZodTypeAny, { previousAction: number; expectedStatus: "error" | "success"; }, { previousAction: number; expectedStatus: "error" | "success"; }>>; }, "strip", z.ZodTypeAny, { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }, { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }>, "many">; stopOnError: z.ZodOptional; }, "strip", z.ZodTypeAny, { actions: { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }[]; browserId?: string | undefined; stopOnError?: boolean | undefined; tabId?: string | undefined; }, { actions: { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }[]; browserId?: string | undefined; stopOnError?: boolean | undefined; tabId?: string | undefined; }>>[]; /** * All Chrome Control tools */ export declare const allTools: (import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { launchOptions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { launchOptions: z.ZodOptional>; }, never>, "strip", z.ZodTypeAny, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }, { browserId?: string | undefined; launchOptions?: Record | undefined; tabId?: string | undefined; }>>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { url: z.ZodOptional; }, "strip", z.ZodTypeAny, { url?: string | undefined; browserId?: string | undefined; tabId?: string | undefined; }, { url?: string | undefined; browserId?: string | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { url: z.ZodString; waitUntil: z.ZodOptional>; timeout: z.ZodOptional; responseFormat: z.ZodOptional; fullPage: z.ZodOptional; pageText: z.ZodOptional; pageTitle: z.ZodOptional; elements: z.ZodOptional; attributes: z.ZodOptional>; includeText: z.ZodOptional; includeHTML: z.ZodOptional; }, "strip", z.ZodTypeAny, { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; }, { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; }>>; links: z.ZodOptional; inputs: z.ZodOptional; }, "strip", z.ZodTypeAny, { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; }, { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { url: string; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; responseFormat?: { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; } | undefined; tabId?: string | undefined; }, { url: string; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; responseFormat?: { fullPage?: boolean | undefined; screenshot?: boolean | undefined; pageText?: boolean | undefined; pageTitle?: boolean | undefined; elements?: { selector?: string | undefined; attributes?: string[] | undefined; includeText?: boolean | undefined; includeHTML?: boolean | undefined; } | undefined; links?: boolean | undefined; inputs?: boolean | undefined; } | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodOptional; xpath: z.ZodOptional; function: z.ZodOptional; navigation: z.ZodOptional; waitUntil: z.ZodOptional>; time: z.ZodOptional; timeout: z.ZodOptional; }, "strip", z.ZodTypeAny, { function?: string | undefined; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; selector?: string | undefined; xpath?: string | undefined; navigation?: boolean | undefined; time?: number | undefined; tabId?: string | undefined; }, { function?: string | undefined; browserId?: string | undefined; waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; timeout?: number | undefined; selector?: string | undefined; xpath?: string | undefined; navigation?: boolean | undefined; time?: number | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { name: z.ZodString; selector: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; fullPage: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; browserId?: string | undefined; selector?: string | undefined; width?: number | undefined; height?: number | undefined; fullPage?: boolean | undefined; tabId?: string | undefined; }, { name: string; browserId?: string | undefined; selector?: string | undefined; width?: number | undefined; height?: number | undefined; fullPage?: boolean | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; options: z.ZodOptional>; clickCount: z.ZodOptional; delay: z.ZodOptional; }, "strip", z.ZodTypeAny, { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; }, { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { selector: string; browserId?: string | undefined; options?: { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; } | undefined; tabId?: string | undefined; }, { selector: string; browserId?: string | undefined; options?: { button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; delay?: number | undefined; } | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; }, "strip", z.ZodTypeAny, { selector: string; browserId?: string | undefined; tabId?: string | undefined; }, { selector: string; browserId?: string | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { action: z.ZodEnum<["move", "down", "up", "click"]>; x: z.ZodOptional; y: z.ZodOptional; button: z.ZodOptional>; clickCount: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "move" | "down" | "up" | "click"; browserId?: string | undefined; x?: number | undefined; y?: number | undefined; button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; tabId?: string | undefined; }, { action: "move" | "down" | "up" | "click"; browserId?: string | undefined; x?: number | undefined; y?: number | undefined; button?: "left" | "right" | "middle" | undefined; clickCount?: number | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { action: z.ZodEnum<["press", "down", "up", "type"]>; key: z.ZodOptional; text: z.ZodOptional; delay: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "type" | "down" | "up" | "press"; browserId?: string | undefined; text?: string | undefined; delay?: number | undefined; key?: string | undefined; tabId?: string | undefined; }, { action: "type" | "down" | "up" | "press"; browserId?: string | undefined; text?: string | undefined; delay?: number | undefined; key?: string | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; value: z.ZodString; delay: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; selector: string; browserId?: string | undefined; delay?: number | undefined; tabId?: string | undefined; }, { value: string; selector: string; browserId?: string | undefined; delay?: number | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { selector: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; selector: string; browserId?: string | undefined; tabId?: string | undefined; }, { value: string; selector: string; browserId?: string | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { action: z.ZodEnum<["get", "set", "delete", "clear"]>; cookie: z.ZodOptional; path: z.ZodOptional; expires: z.ZodOptional; httpOnly: z.ZodOptional; secure: z.ZodOptional; sameSite: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; }, { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; }>>; names: z.ZodOptional>; }, "strip", z.ZodTypeAny, { action: "get" | "set" | "delete" | "clear"; browserId?: string | undefined; cookie?: { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; } | undefined; names?: string[] | undefined; tabId?: string | undefined; }, { action: "get" | "set" | "delete" | "clear"; browserId?: string | undefined; cookie?: { name: string; value: string; path?: string | undefined; domain?: string | undefined; expires?: number | undefined; httpOnly?: boolean | undefined; secure?: boolean | undefined; sameSite?: "Strict" | "Lax" | "None" | undefined; } | undefined; names?: string[] | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { script: z.ZodString; }, "strip", z.ZodTypeAny, { script: string; browserId?: string | undefined; tabId?: string | undefined; }, { script: string; browserId?: string | undefined; tabId?: string | undefined; }>> | import("./types/tool.js").Tool; tabId: z.ZodOptional; } & { actions: z.ZodArray; params: z.ZodRecord; condition: z.ZodOptional; }, "strip", z.ZodTypeAny, { previousAction: number; expectedStatus: "error" | "success"; }, { previousAction: number; expectedStatus: "error" | "success"; }>>; }, "strip", z.ZodTypeAny, { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }, { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }>, "many">; stopOnError: z.ZodOptional; }, "strip", z.ZodTypeAny, { actions: { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }[]; browserId?: string | undefined; stopOnError?: boolean | undefined; tabId?: string | undefined; }, { actions: { params: Record; type: import("./types/puppeteer.js").ActionType; condition?: { previousAction: number; expectedStatus: "error" | "success"; } | undefined; }[]; browserId?: string | undefined; stopOnError?: boolean | undefined; tabId?: string | undefined; }>>)[]; /** * Register all Chrome Control tools with an MCP server * * This function registers all available browser automation tools with the provided * MCP server instance. It's the main entry point for setting up the complete * suite of tools that enable LLMs to control Chrome browsers. * * @param server - The MCP server instance to register tools with * * @example * ```typescript * import { McpServer } from './mcp-server.js'; * import { registerTools } from './tools.js'; * * const server = new McpServer(); * registerTools(server); * await server.start(); * ``` * * @public */ export declare function registerTools(server: McpServer): void; //# sourceMappingURL=tools.d.ts.map