← Back to context

Comment by post_below

17 hours ago

The browser is very straightforward, about 300 lines implementing all of the various actions you'd want an agent to have access to in puppeteer:

const puppeteer = require('puppeteer'); const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://example.com');

Session persistence is accomplished by storing the WebSocket endpoint between calls.

More: https://pptr.dev/guides/browser-management