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
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Implementation Reference
- index.ts:216-224 (handler)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, };
- index.ts:106-112 (schema)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 ?? {}));