navigate
Directs the browser to a specified URL for web page interaction and consent management testing within the Autoconsent MCP server environment.
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-219 (handler)The handler function for the 'navigate' tool. It uses Puppeteer to navigate the browser page to the provided URL and returns a success 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 for the 'navigate' tool, defining a required 'url' string parameter.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, including name, description, and input schema.{ name: "navigate", description: "Navigate to any URL in the browser", inputSchema: { type: "object", properties: { url: { type: "string", description: "URL to navigate to" }, }, required: ["url"], }, },