Skip to main content
Glama

browser_navigate

Navigate web browsers to specified URLs for automated testing, data extraction, and web interaction workflows using Selenium WebDriver.

Instructions

Navigate to a URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to navigate to

Implementation Reference

  • The handler function that executes the tool logic: retrieves the current browser driver from state manager and navigates to the specified URL using driver.get(url). Returns success or error message.
    async ({ url }) => { try { const driver = stateManager.getDriver(); await driver.get(url); return { content: [{ type: 'text', text: `Navigated to ${url}` }], }; } catch (e) { return { content: [{ type: 'text', text: `Error navigating: ${(e as Error).message}` }], }; } }
  • Input schema for the tool, defining a required 'url' parameter as a string with description.
    { url: z.string().describe('URL to navigate to'), },
  • Direct registration of the 'browser_navigate' tool using server.tool(), including name, description, input schema, and handler function. This occurs within the registerBrowserTools function.
    server.tool( 'browser_navigate', 'Navigate to a URL', { url: z.string().describe('URL to navigate to'), }, async ({ url }) => { try { const driver = stateManager.getDriver(); await driver.get(url); return { content: [{ type: 'text', text: `Navigated to ${url}` }], }; } catch (e) { return { content: [{ type: 'text', text: `Error navigating: ${(e as Error).message}` }], }; } } );

Latest Blog Posts

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/pshivapr/selenium-mcp'

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