navigate
Direct the browser to a specified URL using Autoconsent MCP, enabling precise navigation for testing and interacting with web pages within an automation framework.
Instructions
Navigate to any URL in the browser
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to navigate to |
Implementation Reference
- src/index.ts:208-218 (handler)Handler for the 'navigate' tool: uses Puppeteer to navigate the browser page to the specified URL and returns a confirmation message.case "navigate": await page.goto(args.url, { waitUntil: "domcontentloaded" }); return { content: [ { type: "text", text: `Navigated to ${args.url}`, }, ], isError: false, };
- src/index.ts:24-30 (schema)Input schema defining the 'url' parameter as a required string for the 'navigate' tool.inputSchema: { type: "object", properties: { url: { type: "string", description: "URL to navigate to" }, }, required: ["url"], },
- src/index.ts:21-31 (registration)Registration of the 'navigate' tool in the TOOLS array used for listing available tools.{ name: "navigate", description: "Navigate to any URL in the browser", inputSchema: { type: "object", properties: { url: { type: "string", description: "URL to navigate to" }, }, required: ["url"], }, },