woolworths_navigate
Navigate directly to specific Woolworths website pages to access products, specials, or shopping features using provided URLs.
Instructions
Navigate to a specific URL on the Woolworths website
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to navigate to |
Implementation Reference
- src/index.ts:291-303 (handler)The function that executes the tool logic for woolworths_navigate, navigating the current browser page to the specified URL and returning the new URL and title.async function handleNavigate(args: any): Promise<any> { if (!browser || !currentPage) { throw new Error("Browser is not open. Use woolworths_open_browser first."); } await currentPage.goto(args.url, { waitUntil: "networkidle2" }); return { success: true, url: currentPage.url(), title: await currentPage.title(), }; }
- src/index.ts:35-48 (schema)The tool definition including name, description, and input schema for woolworths_navigate.{ name: "woolworths_navigate", description: "Navigate to a specific URL on the Woolworths website", inputSchema: { type: "object", properties: { url: { type: "string", description: "The URL to navigate to", }, }, required: ["url"], }, },
- src/index.ts:627-629 (registration)The switch case that registers and dispatches calls to the woolworths_navigate handler in the tool call request handler.case "woolworths_navigate": result = await handleNavigate(args || {}); break;