UNPKG

@mrtkrcm/mcp-puppeteer

Version:

Model Context Protocol server for browser automation using Puppeteer

26 lines (25 loc) 704 B
import { Page } from 'puppeteer'; /** * Represents a node in the accessibility tree */ export interface AccessibilityNode { role: string; name?: string; value?: string; description?: string; properties?: Record<string, string>; selected?: boolean; checked?: boolean; disabled?: boolean; required?: boolean; focused?: boolean; level?: number; ref: string; children?: AccessibilityNode[]; } /** * Generate a YAML-formatted accessibility snapshot from the current page * @param page Puppeteer page * @returns YAML string representation of the accessibility tree */ export declare function generateAccessibilitySnapshot(page: Page): Promise<string>;