This tool enables Gptscript to browse websites, navigate through pages, and execute specific actions seamlessly.
To get started, execute the following commands:
git clone https://github.com/gptscript-ai/browser
cd browser
npm install
npm run server
gptscript ./examples/coachella-browse.gpt
Explore our built-in examples to learn how to navigate between websites using the browser tool:
Video Demonstrations:
To reuse your existing browser user data and cookies, use the following prompt:
Reuse existing browser userdata and session.
This action will terminate any existing Chrome processes and launch a new browser session with your saved data.
The tool operates as an HTTP server running in the background, managing browser actions and sessions.
Each Gptscript command is linked to a unique session associated with the context, ensuring that all actions are performed within a single page.
Reusing browser sessions will close any active Chrome processes.