Skip to main content
Glama

autonomous-frontend-browser-tools

navigation.js898 B
/** * 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. */ /** * Build the navigation message payload to send over WebSocket to the extension. */ export function buildNavigationMessage(req, requestId) { return JSON.stringify({ type: "navigate-tab", url: req.url, requestId, }); } /** * Narrow and validate the navigation response coming back over WebSocket. */ export function parseNavigationResponse(data, expectedRequestId) { 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