Skip to main content
Glama
afshawnlotfi

Configurable Puppeteer MCP Server

by afshawnlotfi

puppeteer_navigate

Automate browser navigation to a specified URL using Puppeteer, enabling interaction with web pages and execution of JavaScript within a browser environment.

Instructions

Navigate to a URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • The switch case in the handleToolCall function that executes the puppeteer_navigate tool by navigating to the provided URL using page.goto and returning a success message.
    case "puppeteer_navigate": await page.goto(args.url); return { content: [{ type: "text", text: `Navigated to ${args.url}`, }], isError: false, };
  • Input schema definition for puppeteer_navigate tool, requiring a 'url' string parameter.
    inputSchema: { type: "object", properties: { url: { type: "string" }, }, required: ["url"], },
  • index.ts:19-29 (registration)
    Registration of the puppeteer_navigate tool in the TOOLS array, including name, description, and input schema.
    { name: "puppeteer_navigate", description: "Navigate to a URL", inputSchema: { type: "object", properties: { url: { type: "string" }, }, required: ["url"], }, },
  • index.ts:411-412 (registration)
    The ListToolsRequestSchema handler returns the TOOLS array, which includes the puppeteer_navigate tool.
    tools: TOOLS, }));
  • index.ts:414-416 (registration)
    Registration of the CallToolRequestSchema handler, which dispatches to handleToolCall based on tool name, including puppeteer_navigate.
    server.setRequestHandler(CallToolRequestSchema, async (request) => handleToolCall(request.params.name, request.params.arguments ?? {}) );

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/afshawnlotfi/mcp-configurable-puppeteer'

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