Documentation Index
Fetch the complete documentation index at: https://docs.capy.ai/llms.txt
Use this file to discover all available pages before exploring further.
What are browser snapshots?
Browser snapshots store authenticated browser state — cookies and localStorage — that gets injected into agent VMs at startup. This lets agents interact with authenticated services (dashboards, staging environments, internal tools) without needing to log in.How it works
- Create a snapshot with your cookies and localStorage via
POST /browser-snapshots - Mark it as default so it’s automatically applied to all sessions, or pass specific snapshot IDs when creating threads
- Agents get authenticated sessions — cookies and localStorage are injected into Chrome on the VM before the agent starts
Using snapshots with threads
PassbrowserSnapshotIds when creating a thread or sending a message to control which snapshots are applied:
browserSnapshotIds, the agent uses all snapshots marked as default for the project.
Visibility
- Public snapshots (
isPrivate: false) are visible to all project members - Private snapshots (
isPrivate: true) are only visible to their creator - Snapshots marked default (
isDefault: true) are automatically applied to all agent sessions unless overridden
Quick start
1. Create a snapshot
2. Verify it was created
3. Use it in a thread
The
storageState format matches Playwright’s storage
state.
You can export state from Playwright and use it directly.