Skip to main content
Glama

puppeteer_navigate

Direct a browser to load a specific webpage by providing its URL. This action enables web automation for tasks like content extraction, interaction, or testing.

Instructions

Navigate to a URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • The switch case that implements the core logic for the 'puppeteer_navigate' tool: navigates the Puppeteer page to the specified URL and returns a success response.
    case "puppeteer_navigate": await page.goto(args.url); return { content: [{ type: "text", text: `Navigated to ${args.url}`, }], isError: false, };
  • The input schema for the 'puppeteer_navigate' tool, defining a required 'url' property of type string.
    inputSchema: { type: "object", properties: { url: { type: "string" }, }, required: ["url"], },
  • index.ts:103-113 (registration)
    The tool registration object in the TOOLS array that defines the name, description, and schema for 'puppeteer_navigate', used by the ListToolsRequestSchema handler.
    { name: "puppeteer_navigate", description: "Navigate to a URL", inputSchema: { type: "object", properties: { url: { type: "string" }, }, required: ["url"], }, },
  • index.ts:447-449 (registration)
    The server request handler for listing tools, which returns the TOOLS array including 'puppeteer_navigate'.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));
  • index.ts:451-451 (registration)
    The server request handler for calling tools, which dispatches to handleToolCall based on the tool name, routing 'puppeteer_navigate' to its implementation.
    server.setRequestHandler(CallToolRequestSchema, async (request) => handleToolCall(request.params.name, request.params.arguments ?? {}));

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/PhialsBasement/MCP-Puppeteer-Linux'

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