Skip to main content
Glama

WDIO MCP Server

by siri100
navigate.tool.ts752 B
import { z } from "zod"; import { getBrowserInstance } from "./open.browser.tool.js"; // Schema definition export const navigateToolArguments = z.object({ url: z.string().url().describe("The URL to navigate to"), }); // Tool function export const navigateTool = async ({ url }: z.infer<typeof navigateToolArguments>) => { const browser = getBrowserInstance(); try { await browser.url(url); return { content: [ { type: "text" as const, text: `🌐 Navigated to: ${url}`, }, ], }; } catch (err) { return { content: [ { type: "text" as const, text: `❌ Failed to navigate to ${url}: ${(err as Error).message}`, }, ], }; } };

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/siri100/wdio-mcp-server'

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