navigate
Directs a browser to load a specific web page for automated testing and interaction within the QA Agent Pro environment.
Instructions
Navigate to a specific URL in the browser
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to navigate to |
Implementation Reference
- src/browser.ts:31-36 (handler)The core handler function for the 'navigate' tool in the BrowserManager class. It initializes the browser page if necessary, clears console logs, navigates to the specified URL using Puppeteer with networkidle0 wait condition, and returns a confirmation message.async navigate(url: string) { const page = await this.init(); this.consoleLogs = []; // Clear logs on new navigation await page.goto(url, { waitUntil: 'networkidle0' }); return `Navigated to ${url}`; }
- src/index.ts:26-36 (schema)The schema definition for the 'navigate' tool within the TOOLS array, specifying the name, description, and input schema (requiring a 'url' string). This is returned by the listTools handler.{ name: "navigate", description: "Navigate to a specific URL in the browser", inputSchema: { type: "object", properties: { url: { type: "string", description: "The URL to navigate to" }, }, required: ["url"], }, },
- src/index.ts:120-122 (registration)The dispatch/registration case in the CallToolRequestSchema handler's switch statement that maps the 'navigate' tool call to the browserManager.navigate function invocation.case "navigate": result = await browserManager.navigate(String(args?.url)); break;