Skip to main content
Glama

puppeteer_navigate

Automate web browsing by navigating to specified URLs using browser automation, enabling tasks like content retrieval, interaction, and JavaScript execution.

Instructions

Navigate to a URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • The core handler logic for the puppeteer_navigate tool, which navigates the Puppeteer-controlled page to the specified URL and returns a confirmation message.
    case "puppeteer_navigate":
      await page.goto(args.url);
      return {
        content: [
          {
            type: "text",
            text: `Navigated to ${args.url}`,
          },
        ],
        isError: false,
      };
  • Defines the input schema for the puppeteer_navigate tool, requiring a single 'url' string parameter.
    inputSchema: {
      type: "object",
      properties: {
        url: { type: "string" },
      },
      required: ["url"],
    },
  • index.ts:278-280 (registration)
    Registers the puppeteer_navigate tool (among others) by providing the TOOLS list in response to list tools requests.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: TOOLS,
    }));
  • index.ts:282-284 (registration)
    Registers the call tool handler which routes puppeteer_navigate calls to the appropriate switch case in handleToolCall.
    server.setRequestHandler(CallToolRequestSchema, async (request) =>
      handleToolCall(request.params.name, request.params.arguments ?? {})
    );
Install Server

Other Tools

Related Tools

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/jwaldor/mcp-scrape-copilot'

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