Handstage is a TypeScript browser automation library built directly on Chrome’s DevTools Protocol (CDP). It gives you precise control over Chrome — launching browsers, navigating pages, interacting with elements, capturing screenshots, and reading accessibility trees — with a clean, typed API and no hidden abstractions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/l-xiaoshen/handstage/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Launch Chrome and automate your first page in under 5 minutes.
Installation
Install
@handstage/core and set up your TypeScript project.Core Concepts
Understand browsers, contexts, pages, and locators.
API Reference
Full reference for the V3 class and all public APIs.
What you can do with Handstage
Browser control
Launch or attach to local Chrome, create isolated browser contexts, and manage multiple tabs.
Element interaction
Click, fill, type, hover, and upload files using CSS or XPath selectors with shadow DOM support.
Accessibility snapshots
Capture structured accessibility trees for AI agent vision and reliable element targeting.
AI agent integration
Use
@handstage/agent to give any LLM a fully-typed browser tool set via the Vercel AI SDK.Screenshots
Take full-page or element-level screenshots with animation control and mask support.
Cookie & header management
Read, set, and clear cookies. Inject custom HTTP headers across all requests.
Get started in 3 steps
Handstage requires Chrome or Chromium to be installed. On most systems,
V3.connectLocal() finds Chrome automatically. See Connecting to Chrome for advanced configuration.