Learn how to control a browser programmatically inside a Runloop Devbox using the Runloop SDK
Set Up Your Environment
Install and Initialize the Runloop SDK
client
object allows interaction with the Runloop API.Create a Devbox and Start the Browser
Connect to the Browser using Playwright
Defining Tools for AI Agents
Passing Tools to an AI Agent
Properly Freeing Resources