navigate
Directs the browser to a specific URL, enabling automated web navigation for testing or interaction on ARM64 devices like Raspberry Pi.
Instructions
Navigate to a URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to navigate to |
Implementation Reference
- index.js:603-610 (handler)The core handler function for the 'navigate' MCP tool. It ensures the Chromium browser is running, sends a Chrome DevTools Protocol (CDP) 'Page.navigate' command with the provided URL, and returns a success confirmation message.async navigate(url) { await this.ensureChromium(); await this.sendCDPCommand('Page.navigate', { url }); return { content: [{ type: 'text', text: `Successfully navigated to ${url}` }], }; }
- index.js:108-117 (schema)Input schema for the 'navigate' tool, defining a required 'url' parameter of type string.inputSchema: { type: 'object', properties: { url: { type: 'string', description: 'The URL to navigate to', }, }, required: ['url'], },
- index.js:105-118 (registration)Tool registration object for 'navigate' provided in response to ListToolsRequestSchema.{ name: 'navigate', description: 'Navigate to a URL', inputSchema: { type: 'object', properties: { url: { type: 'string', description: 'The URL to navigate to', }, }, required: ['url'], }, },
- index.js:351-352 (handler)Dispatch handler in the CallToolRequestSchema switch statement that routes 'navigate' calls to the main navigate method.case 'navigate': return await this.navigate(args.url);