Installation
Install the SDK using your preferred package manager:Quick Start
API Reference
new Grasp(options)
Create a new Grasp client instance.object
grasp.create(options)
Create and start a new container.object
grasp.connect(containerId)
Connect to an existing container by ID. If the container is sleeping, it will be awakened.string
required
The ID of the container to connect to
GraspContainer
The container object returned bygrasp.create() and grasp.connect().
Properties:
string
Unique container identifier
string
Container status
string
ISO timestamp of creation
GraspBrowserSession
Browser session details
container.shutdown()
Shut down and clean up the container. Returns: Promise<void> Example:GraspBrowserSession
Browser session details associated with a container. Properties:string
Chrome DevTools Protocol WebSocket endpoint
string
Live view URL for observing the browser
Type Definitions
TProxySettings
TBrowserSettings
TTerminalSettings
TFileSystemSettings
Environment Variables
GRASP_API_KEY- Default API key (recommended)