Make sure you have installed GSD Browser and that Chrome or Chromium is available on your machine before continuing.
CLI quickstart
Start the daemon
The daemon starts automatically on the first browser command, but you can also pre-warm it explicitly:Verify it is running:
Navigate to a URL
Send the browser to any page. The daemon opens Chrome if it isn’t already running.You can combine navigation with an instant screenshot:
Take a snapshot to get element refs
A snapshot scans the current page and assigns stable versioned refs to every interactive element. Refs look like Example output:
@v1:e1, @v1:e2, and so on. The version prefix ensures stale refs from a previous snapshot are automatically rejected.Click an element using its ref
Pass a ref directly to You can also click by CSS selector when you prefer:
click. GSD Browser resolves it to the live DOM element — no CSS selector guessing required.Type into a field
Target an input by its ref and provide the text to type:Add
--submit to press Enter after typing, or --clear-first to empty the field before filling it:Capture a screenshot
Save the current viewport as an image. Both JPEG and PNG are supported.Capture the full scrollable page:
Useful CLI options
Everygsd-browser command accepts these global flags:
| Flag | Purpose |
|---|---|
--json | Return structured JSON output instead of human-readable text |
--session <name> | Target a named session for isolated browser state |
--browser-path <path> | Path to a specific Chrome or Chromium binary |
--cdp-url <url> | Attach to an already-running Chrome instance |
AI agent path: MCP server
If you are connecting an AI agent rather than scripting the CLI directly, use the MCP server instead. It exposes the full GSD Browser surface as 50+ discoverable tools, live resources, and executable prompts to any MCP-compatible client. Start the MCP server on stdio (most clients manage the process for you):MCP Server guide
Client configuration, tool categories, resources, prompts, and remote hosting.
Snapshots & Refs
Deep dive into versioned refs — the core mechanism for reliable agent interaction.
What to explore next
Sessions
Isolate browser state, run parallel agent tasks, and persist authentication across runs.
Snapshots & Refs
Understand versioned refs, snapshot modes, and the action cache.
MCP Server
Connect Cursor, Claude Desktop, or any MCP-compatible agent.
