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
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Implementation Reference
- index.ts:162-170 (handler)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, };
- index.ts:22-28 (schema)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 ?? {}) );