@truefrontier/puppeteer-laravel-mcp-server
Version:
A Model Context Protocol server for Laravel Herd browser automation using Puppeteer
25 lines • 1.09 kB
TypeScript
import { Page } from 'puppeteer';
import { BrowserInstance, NavigationOptions, ScreenshotOptions, InteractionOptions, WaitForOptions, DebugInfo } from '../core/types.js';
export declare class PuppeteerTools {
private instance;
private page;
private debugInfo;
constructor(instance: BrowserInstance, page: Page);
private addDebugInfo;
private addVisualDebug;
navigate(url: string, options?: NavigationOptions): Promise<void>;
screenshot(options?: ScreenshotOptions): Promise<string>;
interact(selector: string, action: 'click' | 'type' | 'select' | 'scroll', value?: string, options?: InteractionOptions): Promise<void>;
execute(script: string, ...args: any[]): Promise<any>;
waitFor(selector: string, options?: WaitForOptions): Promise<void>;
getPageInfo(): Promise<{
title: string;
url: string;
viewport: import("puppeteer").Viewport | null;
debugInfo: DebugInfo[];
timestamp: Date;
}>;
getDebugInfo(): DebugInfo[];
clearDebugInfo(): void;
}
//# sourceMappingURL=puppeteer-tools.d.ts.map