export declare function createToolDefinitions(): [{ readonly name: "start_codegen_session"; readonly description: "Start a new code generation session to record Playwright actions"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly options: { readonly type: "object"; readonly description: "Code generation options"; readonly properties: { readonly outputPath: { readonly type: "string"; readonly description: "Directory path where generated tests will be saved (use absolute path)"; }; readonly testNamePrefix: { readonly type: "string"; readonly description: "Prefix to use for generated test names (default: 'GeneratedTest')"; }; readonly includeComments: { readonly type: "boolean"; readonly description: "Whether to include descriptive comments in generated tests"; }; }; readonly required: readonly ["outputPath"]; }; }; readonly required: ["options"]; }; }, { readonly name: "end_codegen_session"; readonly description: "End a code generation session and generate the test file"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly sessionId: { readonly type: "string"; readonly description: "ID of the session to end"; }; }; readonly required: ["sessionId"]; }; }, { readonly name: "get_codegen_session"; readonly description: "Get information about a code generation session"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly sessionId: { readonly type: "string"; readonly description: "ID of the session to retrieve"; }; }; readonly required: ["sessionId"]; }; }, { readonly name: "clear_codegen_session"; readonly description: "Clear a code generation session without generating a test"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly sessionId: { readonly type: "string"; readonly description: "ID of the session to clear"; }; }; readonly required: ["sessionId"]; }; }, { readonly name: "playwright_navigate"; readonly description: "Navigate to a URL"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly url: { readonly type: "string"; readonly description: "URL to navigate to the website specified"; }; readonly browserType: { readonly type: "string"; readonly description: "Browser type to use (chromium, firefox, webkit). Defaults to chromium"; readonly enum: readonly ["chromium", "firefox", "webkit"]; }; readonly width: { readonly type: "number"; readonly description: "Viewport width in pixels (default: 1280)"; }; readonly height: { readonly type: "number"; readonly description: "Viewport height in pixels (default: 720)"; }; readonly timeout: { readonly type: "number"; readonly description: "Navigation timeout in milliseconds"; }; readonly waitUntil: { readonly type: "string"; readonly description: "Navigation wait condition"; }; readonly headless: { readonly type: "boolean"; readonly description: "Run browser in headless mode (default: false)"; }; }; readonly required: ["url"]; }; }, { readonly name: "playwright_screenshot"; readonly description: "Take a screenshot of the current page or a specific element"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly name: { readonly type: "string"; readonly description: "Name for the screenshot"; }; readonly selector: { readonly type: "string"; readonly description: "CSS selector for element to screenshot"; }; readonly width: { readonly type: "number"; readonly description: "Width in pixels (default: 800)"; }; readonly height: { readonly type: "number"; readonly description: "Height in pixels (default: 600)"; }; readonly storeBase64: { readonly type: "boolean"; readonly description: "Store screenshot in base64 format (default: true)"; }; readonly fullPage: { readonly type: "boolean"; readonly description: "Store screenshot of the entire page (default: false)"; }; readonly savePng: { readonly type: "boolean"; readonly description: "Save screenshot as PNG file (default: false)"; }; readonly downloadsDir: { readonly type: "string"; readonly description: "Custom downloads directory path (default: user's Downloads folder)"; }; }; readonly required: ["name"]; }; }, { readonly name: "playwright_click"; readonly description: "Click an element on the page"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly selector: { readonly type: "string"; readonly description: "CSS selector for the element to click"; }; }; readonly required: ["selector"]; }; }, { readonly name: "playwright_iframe_click"; readonly description: "Click an element in an iframe on the page"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly iframeSelector: { readonly type: "string"; readonly description: "CSS selector for the iframe containing the element to click"; }; readonly selector: { readonly type: "string"; readonly description: "CSS selector for the element to click"; }; }; readonly required: ["iframeSelector", "selector"]; }; }, { readonly name: "playwright_iframe_fill"; readonly description: "Fill an element in an iframe on the page"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly iframeSelector: { readonly type: "string"; readonly description: "CSS selector for the iframe containing the element to fill"; }; readonly selector: { readonly type: "string"; readonly description: "CSS selector for the element to fill"; }; readonly value: { readonly type: "string"; readonly description: "Value to fill"; }; }; readonly required: ["iframeSelector", "selector", "value"]; }; }, { readonly name: "playwright_fill"; readonly description: "fill out an input field"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly selector: { readonly type: "string"; readonly description: "CSS selector for input field"; }; readonly value: { readonly type: "string"; readonly description: "Value to fill"; }; }; readonly required: ["selector", "value"]; }; }, { readonly name: "playwright_select"; readonly description: "Select an element on the page with Select tag"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly selector: { readonly type: "string"; readonly description: "CSS selector for element to select"; }; readonly value: { readonly type: "string"; readonly description: "Value to select"; }; }; readonly required: ["selector", "value"]; }; }, { readonly name: "playwright_hover"; readonly description: "Hover an element on the page"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly selector: { readonly type: "string"; readonly description: "CSS selector for element to hover"; }; }; readonly required: ["selector"]; }; }, { readonly name: "playwright_upload_file"; readonly description: "Upload a file to an input[type='file'] element on the page"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly selector: { readonly type: "string"; readonly description: "CSS selector for the file input element"; }; readonly filePath: { readonly type: "string"; readonly description: "Absolute path to the file to upload"; }; }; readonly required: ["selector", "filePath"]; }; }, { readonly name: "playwright_evaluate"; readonly description: "Execute JavaScript in the browser console"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly script: { readonly type: "string"; readonly description: "JavaScript code to execute"; }; }; readonly required: ["script"]; }; }, { readonly name: "playwright_console_logs"; readonly description: "Retrieve console logs from the browser with filtering options"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly description: "Type of logs to retrieve (all, error, warning, log, info, debug, exception)"; readonly enum: readonly ["all", "error", "warning", "log", "info", "debug", "exception"]; }; readonly search: { readonly type: "string"; readonly description: "Text to search for in logs (handles text with square brackets)"; }; readonly limit: { readonly type: "number"; readonly description: "Maximum number of logs to return"; }; readonly clear: { readonly type: "boolean"; readonly description: "Whether to clear logs after retrieval (default: false)"; }; }; readonly required: []; }; }, { readonly name: "playwright_resize"; readonly description: "Resize the browser viewport using manual dimensions or device presets. Supports 143+ device presets including iPhone, iPad, Android devices, and desktop browsers with proper user-agent and touch emulation."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly device: { readonly type: "string"; readonly description: "Device preset name (e.g., 'iPhone 13', 'iPad Pro 11', 'Pixel 7', 'Galaxy S24', 'Desktop Chrome'). Automatically configures viewport, user-agent, and device capabilities. Use playwright.devices to see all available devices."; }; readonly width: { readonly type: "number"; readonly description: "Viewport width in pixels (for manual resize without device preset)"; }; readonly height: { readonly type: "number"; readonly description: "Viewport height in pixels (for manual resize without device preset)"; }; readonly orientation: { readonly type: "string"; readonly description: "Device orientation: 'portrait' or 'landscape' (only applies when using device preset)"; readonly enum: readonly ["portrait", "landscape"]; }; }; readonly required: []; }; }, { readonly name: "playwright_close"; readonly description: "Close the browser and release all resources"; readonly inputSchema: { readonly type: "object"; readonly properties: {}; readonly required: []; }; }, { readonly name: "playwright_get"; readonly description: "Perform an HTTP GET request"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly url: { readonly type: "string"; readonly description: "URL to perform GET operation"; }; readonly token: { readonly type: "string"; readonly description: "Bearer token for authorization"; }; readonly headers: { readonly type: "object"; readonly description: "Additional headers to include in the request"; readonly additionalProperties: { readonly type: "string"; }; }; }; readonly required: ["url"]; }; }, { readonly name: "playwright_post"; readonly description: "Perform an HTTP POST request"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly url: { readonly type: "string"; readonly description: "URL to perform POST operation"; }; readonly value: { readonly type: "string"; readonly description: "Data to post in the body"; }; readonly token: { readonly type: "string"; readonly description: "Bearer token for authorization"; }; readonly headers: { readonly type: "object"; readonly description: "Additional headers to include in the request"; readonly additionalProperties: { readonly type: "string"; }; }; }; readonly required: ["url", "value"]; }; }, { readonly name: "playwright_put"; readonly description: "Perform an HTTP PUT request"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly url: { readonly type: "string"; readonly description: "URL to perform PUT operation"; }; readonly value: { readonly type: "string"; readonly description: "Data to PUT in the body"; }; readonly token: { readonly type: "string"; readonly description: "Bearer token for authorization"; }; readonly headers: { readonly type: "object"; readonly description: "Additional headers to include in the request"; readonly additionalProperties: { readonly type: "string"; }; }; }; readonly required: ["url", "value"]; }; }, { readonly name: "playwright_patch"; readonly description: "Perform an HTTP PATCH request"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly url: { readonly type: "string"; readonly description: "URL to perform PATCH operation"; }; readonly value: { readonly type: "string"; readonly description: "Data to PATCH in the body"; }; readonly token: { readonly type: "string"; readonly description: "Bearer token for authorization"; }; readonly headers: { readonly type: "object"; readonly description: "Additional headers to include in the request"; readonly additionalProperties: { readonly type: "string"; }; }; }; readonly required: ["url", "value"]; }; }, { readonly name: "playwright_delete"; readonly description: "Perform an HTTP DELETE request"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly url: { readonly type: "string"; readonly description: "URL to perform DELETE operation"; }; readonly token: { readonly type: "string"; readonly description: "Bearer token for authorization"; }; readonly headers: { readonly type: "object"; readonly description: "Additional headers to include in the request"; readonly additionalProperties: { readonly type: "string"; }; }; }; readonly required: ["url"]; }; }, { readonly name: "playwright_expect_response"; readonly description: "Ask Playwright to start waiting for a HTTP response. This tool initiates the wait operation but does not wait for its completion."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly id: { readonly type: "string"; readonly description: "Unique & arbitrary identifier to be used for retrieving this response later with `Playwright_assert_response`."; }; readonly url: { readonly type: "string"; readonly description: "URL pattern to match in the response."; }; }; readonly required: ["id", "url"]; }; }, { readonly name: "playwright_assert_response"; readonly description: "Wait for and validate a previously initiated HTTP response wait operation."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly id: { readonly type: "string"; readonly description: "Identifier of the HTTP response initially expected using `Playwright_expect_response`."; }; readonly value: { readonly type: "string"; readonly description: "Data to expect in the body of the HTTP response. If provided, the assertion will fail if this value is not found in the response body."; }; }; readonly required: ["id"]; }; }, { readonly name: "playwright_custom_user_agent"; readonly description: "Set a custom User Agent for the browser"; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly userAgent: { readonly type: "string"; readonly description: "Custom User Agent for the Playwright browser instance"; }; }; readonly required: ["userAgent"]; }; }, { readonly name: "playwright_get_visible_text"; readonly description: "Get the visible text content of the current page"; readonly inputSchema: { readonly type: "object"; readonly properties: {}; readonly required: []; }; }, { readonly name: "playwright_get_visible_html"; readonly description: "Get the HTML content of the current page. By default, all