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
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Implementation Reference
- index.ts:193-203 (handler)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, };
- index.ts:26-32 (schema)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 ?? {}) );