Skip to main content
To get started, you first need to create a Grasp container. This will provision a cloud environment with a browser instance ready for you to connect to.

Creating a Container

Here is the basic setup for creating a container.
Once the container is created, you can access its CDP endpoint to connect programmatically.

Connecting with CDP

For powerful, programmatic control over the browser, Grasp exposes a Chrome DevTools Protocol (CDP) WebSocket endpoint. This allows you to connect with popular automation libraries like Playwright or Puppeteer.

Example with Playwright

Here’s a complete example showing how to create a container and then connect to its browser session using Playwright.
This enables you to run complex automation scripts, scrape data, or perform tests on the browser instance managed by Grasp.