chrome-browser

Automate web interactions in a running Chrome session via CDP.

1|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/aj47/agent-skills --skill chrome-browser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chrome-browser
Source: https://github.com/aj47/agent-skills/tree/main/chrome-browser
Command: npx skills add https://github.com/aj47/agent-skills --skill chrome-browser

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables automated browser tasks by connecting to a logged-in Chrome session via the Chrome DevTools Protocol (CDP). It lets you perform web interactions without manually operating the browser.

Core Features & Use Cases

  • Connect to a running Chrome instance on port 9222 using the agent-browser CLI and perform navigation, form filling, button clicks, and data extraction.
  • Snapshot-interact workflow: capture interactive element refs, perform actions, then re-snapshot after DOM changes to keep refs valid.
  • Debug and setup guidance: utilize a saved Chrome profile to preserve logins and use the dedicated debugging workflow for browser automation.

Quick Start

Open a URL in your logged-in Chrome session via agent-browser --cdp 9222 and automate the desired interactions.

Frequently Asked Questions about chrome-browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate form filling in a pre-authenticated Chrome session?

You can automate form filling by connecting to a running Chrome instance via the Chrome DevTools Protocol (CDP) on port 9222, which allows you to interact with authenticated pages without manual login operations.

How does CDP browser automation handle stale DOM elements after clicking?

CDP browser automation uses a snapshot-interact workflow that captures interactive element references, performs actions, and re-snapshots the DOM after changes to keep element references valid.

Do I need to launch Chrome with specific flags for CDP web scraping?

Yes, you need to launch Chrome with remote debugging enabled and attach the agent-browser using the --cdp 9222 flag to connect to the active session for web scraping tasks.

Can I use a saved Chrome profile to preserve logins for browser automation?

Yes, utilizing a saved Chrome profile preserves your logins and authenticated sessions, enabling automated browser tasks on secured pages without needing to re-authenticate.

What is the best way to extract data from websites requiring login authentication?

The best way to extract authenticated data is connecting CDP-enabled Chrome to a pre-authenticated profile, allowing automated navigation and data extraction across websites without manual browser operation.

Why do my interactive element references fail after a dynamic page load?

Interactive element references fail because DOM changes invalidate previous references; the snapshot-interact workflow solves this by re-snapshotting elements after actions to maintain valid references.