Skip to main content
Glama

autonomous-frontend-browser-tools

navigation.ts1.09 kB
/** * Refactor Temp: Tool — navigate-browser-tab * Core, stateless helpers for navigation flow extracted from browser-connector.ts. * Keep Express route binding and WebSocket plumbing inside browser-connector.ts. */ export interface NavigationRequest { url: string; requestId: string; } export interface NavigationResult { success: boolean; error?: string; } /** * Build the navigation message payload to send over WebSocket to the extension. */ export function buildNavigationMessage( req: { url: string }, requestId: string ) { return JSON.stringify({ type: "navigate-tab", url: req.url, requestId, }); } /** * Narrow and validate the navigation response coming back over WebSocket. */ export function parseNavigationResponse( data: any, expectedRequestId: string ): NavigationResult | undefined { if ( data && data.type === "navigation-response" && data.requestId === expectedRequestId ) { if (data.success) { return { success: true }; } return { success: false, error: data.error }; } return undefined; }

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/Winds-AI/Frontend-development-MCP-tools-public'

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