Skip to main content
Glama

navigate

Directs the browser to load a specified URL for automated web testing and interaction.

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 implementing the 'navigate' tool logic: initializes the browser page and navigates to the given URL using Puppeteer, returning 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}`; }
  • Defines the input schema, name, and description for the 'navigate' tool, used for validation and listing.
    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)
    Registers the 'navigate' tool handler in the switch statement of the CallToolRequestSchema, dispatching calls to browserManager.navigate.
    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