Skip to main content
Glama

playwright-mcp

types.ts924 B
declare global { interface Message { type: 'DOM' | 'Image' | 'Text' | 'Interaction'; content: string; windowUrl: string; } interface Window { // for the user page mcpStartPicking: (pickingType: 'DOM' | 'Image') => void; mcpStopPicking: () => void; onElementPicked: (message: Message) => void; // for the iframe triggerMcpStartPicking: (pickingType: 'DOM' | 'Image') => void; triggerMcpStopPicking: () => void; // for the react page globalState: any; stateSubscribers: ((state: any) => void)[]; notifyStateSubscribers: () => void; updateGlobalState: (state: any) => void; triggerSyncToReact: () => void; // for recording recordDOM: (dom: string, elementUUID: string) => Promise<void>; recordInput: (dom: string, elementUUID: string, value: string) => Promise<void>; recordKeyPress: (dom: string, keys: string[]) => Promise<void>; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ashish-Bansal/playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server