open-gsd/gsd-browser/npm

Claude Code and agent skill by open-gsd/gsd-browser

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Open GSD native browser automation for AI agents. Use gsd-browser when the user needs real Chrome/Chromium control: navigate pages, inspect localhost, click, type, fill forms, take screenshots, capture stable snapshot refs, run assertions and waits, extract structured data, compare visual diffs, inspect console/network behavior, mock or block requests, emulate devices, save auth state, record evidence bundles, scan for prompt injection, or share a live browser viewer for human handoff. Good prompts include "inspect this URL", "verify this user flow", "debug this page", "capture evidence", "scrape this table", "show me the browser", "pause/step through this", "login to a site", or "run a visual regression test". Learn more at https://opengsd.net/ and https://github.com/open-gsd/gsd-browser.

Install

npx vskill@latest install open-gsd/gsd-browser/npm

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as open-gsd/gsd-browser/npm.

Browser Automation with gsd-browser

Primary path for AI agents in 2026+: Use the MCP server — gsd-browser mcp.

It exposes 50+ tools, live resources (real snapshot/refs/state data), and executable prompts over stdio. All the unique strengths (versioned refs, live viewer + human collaboration/takeover/annotations/recordings, semantic intents, evidence bundles, self-healing action cache, batch execution, vault, visual regression, safety scanning, etc.) are available automatically to Cursor, Claude Desktop, VS Code + Copilot, and any other MCP client.

Quickstart for agents:

bash
gsd-browser mcp

Then point your MCP client at it (see ./scripts/mcp-quickstart.sh cursor or claude/vscode for tailored configs).

Essential reading for MCP agents:

  • docs/mcp.md — Architecture, capabilities, client config examples, quickstart script.
  • docs/AGENT-BEST-PRACTICES.md — Golden rules, recommended workflows (login, audit, human-in-the-loop, evidence, self-healing), "When to Use What" table, response envelope usage, prompt/resource patterns.
  • docs/examples/mcp-client-config.json — Ready example.

The detailed command reference, error recovery, and workflow patterns in this SKILL.md document the exact semantics of the MCP tools (they are a direct 1:1 mapping). Use this as the source of truth when an MCP tool needs deeper clarification.

The installable curated skill pack lives in gsd-browser-skill/ (installed via the main installer or gsd-browser skill install).

Critical Rules (apply to both direct CLI and MCP usage)

  1. The daemon auto-starts on browser commands. daemon health only reports state; it does not start a session. Use daemon start only when you want to pre-warm or verify daemon lifecycle explicitly.
  2. Always re-snapshot after page changes. Refs are versioned (@v1:e1). After navigation, form submission, or dynamic content loading, old refs are stale. Run gsd-browser snapshot (or read the gsd-browser://latest-snapshot MCP resource) to get fresh refs.
  3. Use `--json` when parsing output. Use text mode when reading output yourself. Use --json when you need to extract values programmatically (e.g., checking assertion results, parsing snapshot refs). MCP tools return rich envelopes containing structured_data.
  4. Positional args have no flag prefix. Commands like click, type, hover take positional args — do NOT add --selector. See exact syntax in command reference below. (MCP equivalents: browser_click_ref etc. take ref as a simple string param.)
  5. Use `batch` for atomic multi-step flows. Batch reduces round trips and keeps pass/fail checks in one call. Use separate commands when you need intermediate output (e.g., snapshot to discover refs). MCP equivalent: browser_batch.
  6. Use `view` when the user wants to watch or direct the browser. The live viewer is an authenticated local workbench with Control, Annotate, Record, and Sensitive modes. Keep CLI/MCP commands on the same named session. MCP tools: browser_view, browser_takeover, browser_annotation_request, browser_record_*, browser_goal, etc.

Core Workflow

Every browser automation follows this pattern:

  1. Navigate: gsd-browser navigate <url> (or browser_navigate via MCP)
  2. Snapshot: gsd-browser snapshot (get versioned refs like @v1:e1, @v1:e2) — or read MCP resource gsd-browser://latest-snapshot
  3. Interact: Use refs to click, fill, hover (or browser_act semantic intents first)
  4. Re-snapshot: After navigation or DOM changes, get fresh refs
bash
gsd-browser navigate https://example.com/form
gsd-browser snapshot
# Output: @v1:e1 [input type="email"], @v1:e2 [input type="password"], @v1:e3 [button] "Submit"
gsd-browser fill-ref @v1:e1 "user@example.com"
gsd-browser fill-ref @v1:e2 "password123"
gsd-browser click-ref @v1:e3
gsd-browser wait-for --condition network_idle
gsd-browser snapshot # REQUIRED — old refs are now stale

MCP agents: After any navigation or major action, prefer re-reading gsd-browser://latest-snapshot (or calling browser_snapshot) before using _ref tools.

Command Chaining

Commands can be chained with && in a single shell invocation. Browser state also persists across separate invocations through the background daemon when you stay on the same session.

bash
# Chain navigate + wait + snapshot
gsd-browser navigate https://example.com && gsd-browser wait-for --condition network_idle && gsd-browser snapshot
# Chain multiple interactions
gsd-browser fill-ref @v1:e1 "user@example.com" && gsd-browser fill-ref @v1:e2 "password123" && gsd-browser click-ref @v1:e3

When to chain: Use && when you don't need intermediate output. Run commands separately when you need to parse output first (e.g., snapshot to discover refs, then interact). For MCP, use browser_batch for atomicity.


Command Reference

Argument syntax: <arg> = required positional, [arg] = optional positional, --flag = named option. Do NOT add -- prefix to positional args.

(MCP tool names are browser_ + kebab-to-snake of the CLI command where applicable. Full authoritative list and schemas are returned live by the MCP server via tools/list. See docs/mcp.md and docs/AGENT-BEST-PRACTICES.md for agent-optimized usage.)

Navigation
bash
gsd-browser navigate <url> # Navigate to a URL
gsd-browser back # Go back in browser history
gsd-browser forward # Go forward in browser history
gsd-browser reload # Reload the current page
Interaction

All selectors are positional — do NOT use --selector.

bash
# Click
gsd-browser click <selector> # Click by CSS selector
gsd-browser click --x 100 --y 200 # Click by coordinates (no selector)
# Type — positional: <selector> <text>
gsd-browser type <selector> <text> # Atomic fill (replaces content)
gsd-browser type <selector> <text> --slowly # Character-by-character
gsd-browser type <selector> <text> --clear-first # Clear field before typing
gsd-browser type <selector> <text> --submit # Press Enter after typing
# Other interaction — all positional selectors
gsd-browser press <key> # Press key: Enter, Escape, Tab, Meta+A
gsd-browser hover <selector> # Hover over element
gsd-browser scroll --direction down # Scroll down 300px (default)
gsd-browser scroll --direction up --amount 500 # Scroll up 500px
gsd-browser select-option <selector> <option> # Select dropdown by label or value
gsd-browser set-checked <selector> --checked # Check checkbox/radio (omit --checked to uncheck)
gsd-browser drag <source-selector> <target-selector> # Drag-and-drop
gsd-browser upload-file <selector> <file>... # Set files on <input type="file">
gsd-browser set-viewport --preset mobile # Preset: mobile, tablet, desktop, wide
gsd-browser set-viewport --width 1920 --height 1080 # Custom dimensions
Snapshot & Refs

Refs are versioned (@v1:e1, @v2:e3). The version increments each snapshot. Old refs become stale after page changes — always re-snapshot.

bash
# Take snapshot
gsd-browser snapshot # Snapshot interactive elements, assign refs
gsd-browser snapshot --selector "form" # Scope to a CSS selector
gsd-browser snapshot --mode <mode> # Semantic mode (see below)
gsd-browser snapshot --limit 80 # Increase element limit (default: 40)
# Use refs — all positional
gsd-browser get-ref <ref> # Get metadata for a ref
gsd-browser click-ref <ref> # Click element by ref
gsd-browser hover-ref <ref> # Hover element by ref
gsd-browser fill-ref <ref> <text> # Type into element by ref

Snapshot modes (--mode):

ModeWhat it captures
interactiveButtons, inputs, links, selects (default)
formForm fields with labels and current values
dialogElements inside open dialogs/modals
navigationLinks and nav elements
errorsError messages, validation warnings
headingsHeading elements (h1-h6) for page structure
visible_onlyAll visible elements regardless of interactivity
Inspection
bash
gsd-browser accessibility-tree # Full accessibility tree (roles, names, states)
gsd-browser find --text "Sign In" # Find elements by text (case-insensitive)
gsd-browser find --role button # Find by ARIA role
gsd-browser find --selector ".my-class" # Find by CSS selector
gsd-browser find --role link --limit 50 # Increase limit (default: 20)
gsd-browser page-source # Get raw HTML of page
gsd-browser page-source --selector "main" # Scoped HTML source
gsd-browser eval '<js-expression>' # Evaluate JavaScript in page context
Assertions

Run explicit pass/fail checks against the current page state. Prefer this over inferring success from output.

bash
gsd-browser assert --checks '[
{"kind": "url_contains", "text": "/dashboard"},
{"kind": "text_visible", "text": "Welcome"},
{"kind": "selector_visible", "selector": "#user-menu"},
{"kind": "value_equals", "selector": "input[name=email]", "value": "user@test.com"},
{"kind": "no_console_errors"},
{"kind": "no_failed_requests"}
]'

Assertion kinds (18): url_contains, title_contains, text_visible, text_hidden, selector_visible, selector_hidden, value_equals, checked, no_console_errors, no_failed_requests, request_url_seen, response_status, console_message_matches, network_count, console_count, element_count, no_console_errors_since, no_failed_requests_since.

Batch Execution

Execute multiple steps in one call to reduce round trips. Stops on first failure by default.

bash
gsd-browser batch --steps '[
{"action": "navigate", "url": "https://example.com"},
{"action": "wait_for", "condition": "network_idle"},
{"action": "click", "selector": "#login-btn"},
{"action": "type", "selector": "input[name=email]", "text": "user@test.com"},
{"action": "type", "selector": "input[name=password]", "text": "secret", "submit": true},
{"action": "assert", "checks": [{"kind": "url_contains", "text": "/dashboard"}]}
]'

With --summary-only to reduce output

gsd-browser batch --steps '[...]' --summary-only

**Batch actions:** `navigate`, `click`, `type`, `key_press`, `wait_for`, `assert`, `click_ref`, `fill_ref`.
(MCP: `browser_batch` — highly recommended for complex agent flows.)
### Wait Conditions

gsd-browser wait-for --condition selector_visible --value "#content" gsd-browser wait-for --condition selector_hidden --value ".spinner" gsd-browser wait-for --condition url_contains --value "/dashboard" gsd-browser wait-for --condition network_idle gsd-browser wait-for --condition delay --value 2000 gsd-browser wait-for --condition text_visible --value "Success" gsd-browser wait-for --condition text_hidden --value "Loading" gsd-browser wait-for --condition request_completed --value "/api/data" gsd-browser wait-for --condition console_message --value "ready" gsd-browser wait-for --condition element_count --value ".item" --threshold ">=5" gsd-browser wait-for --condition region_stable --value "#content"

Custom timeout (default: 10000ms)

gsd-browser wait-for --condition selector_visible --value "#slow" --timeout 30000

### Forms (Smart Fill)
Analyze forms and fill them by field label, name, placeholder, or aria-label — no selectors needed.

Analyze form structure

gsd-browser analyze-form gsd-browser analyze-form --selector "#signup-form"

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
51
Repository forks
6
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/open-gsd/gsd-browser/npm/badge)](https://verified-skill.com/skills/open-gsd/gsd-browser/npm)

Something wrong with this skill or its page? Tell us.