Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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.", }; }
  • 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;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elijah-g/Woolworths-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server