browser_navigate
Navigate web pages to specified URLs using Playwright browser automation for testing, scraping, or interaction tasks.
Instructions
Navigate to a URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Implementation Reference
- index.ts:184-192 (handler)The handler implementation for the 'browser_navigate' tool. Navigates the Playwright browser page to the provided URL and returns a success message.case ToolName.BrowserNavigate: await page.goto(args.url); return { content: [{ type: "text", text: `Navigated to ${args.url}`, }], isError: false, };
- index.ts:37-47 (schema)Schema definition for the 'browser_navigate' tool, specifying the input parameters and description.{ name: ToolName.BrowserNavigate, description: "Navigate to a URL", inputSchema: { type: "object", properties: { url: { type: "string" }, }, required: ["url"], }, },
- index.ts:640-642 (registration)Registers the list of available tools, including 'browser_navigate', via the ListToolsRequestSchema handler.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));
- index.ts:644-646 (registration)Registers the call tool handler which dispatches to the specific tool implementation based on name, including 'browser_navigate'.server.setRequestHandler(CallToolRequestSchema, async (request) => handleToolCall(request.params.name as ToolName, request.params.arguments ?? {}) );
- index.ts:23-23 (helper)Enum definition mapping ToolName.BrowserNavigate to the string 'browser_navigate' used throughout the code.BrowserNavigate = "browser_navigate",