Use the Browser Tool for web interaction
mainThe Browser Tool allows you to control a headless browser to interact with web pages. You can navigate to URLs, click elements, type into inputs, take screenshots, extract text, scroll, and wait for specific conditions. The browser session persists across tool calls within the same agent turn, meaning cookies and session state (like logins) are maintained.
/* The Browser Tool uses a JSON-based action interface */