Skip to main content
Glama

navigate

Directs a browser to load a specific web page for automated testing and interaction within the QA Agent Pro environment.

Instructions

Navigate to a specific URL in the browser

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to navigate to

Implementation Reference

  • The core handler function for the 'navigate' tool in the BrowserManager class. It initializes the browser page if necessary, clears console logs, navigates to the specified URL using Puppeteer with networkidle0 wait condition, and returns a confirmation message.
    async navigate(url: string) { const page = await this.init(); this.consoleLogs = []; // Clear logs on new navigation await page.goto(url, { waitUntil: 'networkidle0' }); return `Navigated to ${url}`; }
  • The schema definition for the 'navigate' tool within the TOOLS array, specifying the name, description, and input schema (requiring a 'url' string). This is returned by the listTools handler.
    { name: "navigate", description: "Navigate to a specific URL in the browser", inputSchema: { type: "object", properties: { url: { type: "string", description: "The URL to navigate to" }, }, required: ["url"], }, },
  • src/index.ts:120-122 (registration)
    The dispatch/registration case in the CallToolRequestSchema handler's switch statement that maps the 'navigate' tool call to the browserManager.navigate function invocation.
    case "navigate": result = await browserManager.navigate(String(args?.url)); break;

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/samusilv/qa-agent-mcp'

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