Skip to main content
Glama

browser_navigate

Navigate web pages to specified URLs using Playwright browser automation for testing, scraping, or interaction tasks.

Instructions

Navigate to a URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • The handler implementation for the 'browser_navigate' tool. Navigates the Playwright browser page to the provided URL and returns a success message.
    case ToolName.BrowserNavigate: await page.goto(args.url); return { content: [{ type: "text", text: `Navigated to ${args.url}`, }], isError: false, };
  • Schema definition for the 'browser_navigate' tool, specifying the input parameters and description.
    { name: ToolName.BrowserNavigate, description: "Navigate to a URL", inputSchema: { type: "object", properties: { url: { type: "string" }, }, required: ["url"], }, },
  • index.ts:640-642 (registration)
    Registers the list of available tools, including 'browser_navigate', via the ListToolsRequestSchema handler.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));
  • index.ts:644-646 (registration)
    Registers the call tool handler which dispatches to the specific tool implementation based on name, including 'browser_navigate'.
    server.setRequestHandler(CallToolRequestSchema, async (request) => handleToolCall(request.params.name as ToolName, request.params.arguments ?? {}) );
  • Enum definition mapping ToolName.BrowserNavigate to the string 'browser_navigate' used throughout the code.
    BrowserNavigate = "browser_navigate",

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/Automata-Labs-team/MCP-Server-Playwright'

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