woolworths_close_browser
Close the browser session after completing Woolworths shopping tasks to free system resources and maintain browser performance.
Instructions
Closes the browser instance
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:326-342 (handler)The main handler function that closes the Puppeteer browser instance if it is open, clears references, and returns a success or error message.async function handleCloseBrowser(args: any): Promise<any> { if (!browser) { return { success: false, message: "Browser is not open.", }; } await browser.close(); browser = null; currentPage = null; return { success: true, message: "Browser closed. Session cookies have been preserved.", }; }
- src/index.ts:58-65 (schema)Tool schema definition including name, description, and empty input schema (no parameters required). Part of the TOOLS array used for tool listing.{ name: "woolworths_close_browser", description: "Closes the browser instance", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:635-637 (registration)Registration of the handler in the main switch statement that dispatches tool calls to the appropriate function.case "woolworths_close_browser": result = await handleCloseBrowser(args || {}); break;