UNPKG

puppeteer-vision-mcp-server

Version:

MCP Server for scraping webpages and converting to markdown

23 lines 1 kB
import { Page } from 'puppeteer'; import { AIAction } from '../types/index.js'; /** * Executes an AI-recommended action on the page * @param page Puppeteer page instance * @param action The action to execute * @returns Whether the action was successfully executed */ export declare function executeAction(page: Page, action: AIAction): Promise<boolean>; /** * Clicks on elements that match the target text across all frames * @param page Puppeteer page instance * @param targetText The text to search for in clickable elements */ export declare function clickElementsByText(page: Page, targetText: string): Promise<void>; /** * Handles interactions with the page using AI vision analysis * @param page Puppeteer page instance * @param maxAttempts Maximum number of interaction attempts * @returns Whether any interactions were performed */ export declare function handlePageInteractions(page: Page, maxAttempts?: number): Promise<boolean>; //# sourceMappingURL=page-interactions.d.ts.map