
tonyhzk/chrome-agent-skill
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A Claude Code Skill for browser automation via Chrome extension WebSocket — navigate, click, type, screenshot, multi-tab management and more.
概要
A Claude Code Skill for browser automation via WebSocket communication with the Chrome extension, enabling web navigation, interaction, screenshots, and page snapshots. - - Navigate to URLs, go back/forward - - Click (ref or coordinates), hover, type text, select options, drag elements - - Search elements by keyword, get element coordinates - - List, open, switch, close tabs - - Capture visible page as PNG (save to file or return base64) - - Get ARIA accessibility tree for structured page analysis - - Get plain text content, full HTML source code - - Press any key, submit forms - - Retrieve browser console output The server communicates with the Browser MCP Chrome extension over WebSocket. Commands are sent as JSON via stdin, and results are returned via stdout. - - Resolve redirect URLs in bulk via HTTP requests (no browser required) 1. Open chrome://extensions/ in Chrome 2. Enable 3. Unzip the .
README
以下は原文 README の抜粋です。原文を見る。
Features
Core Capabilities
- Page Navigation - Navigate to URLs, go back/forward
- Element Interaction - Click (ref or coordinates), hover, type text, select options, drag elements
- Element Search - Search elements by keyword, get element coordinates
- Multi-Tab Management - List, open, switch, close tabs
- Screenshots - Capture visible page as PNG (save to file or return base64)
- Page Snapshots - Get ARIA accessibility tree for structured page analysis
- Page Content - Get plain text content, full HTML source code
- Keyboard Input - Press any key, submit forms
- Console Logs - Retrieve browser console output
Architecture
The server communicates with the Browser MCP Chrome extension over WebSocket. Commands are sent as JSON via stdin, and results are returned via stdout.
Additional Tools
- Batch URL Resolver - Resolve redirect URLs in bulk via HTTP requests (no browser required)
System Requirements
| Requirement | Details |
|---|---|
| Python | 3.8+ |
| Chrome | With Browser MCP extension installed |
| OS | Windows / macOS / Linux |
| persistent-shell-skill | Recommended for Claude Code to keep the server running |
Installation
1. Clone the Repository
git clone https://github.com/Tonyhzk/chrome-agent-skill.git
2. Install the Chrome Extension
- Open
chrome://extensions/in Chrome - Enable Developer mode
- Unzip the
.zipextension package fromsrc/browser-chrome-agent/assets/, then click “Load unpacked” and select the unzipped directory; or load thesrc/browser-mcp-crx/source directory directly - Pin the Browser MCP extension for easy access
3. Install Python Dependencies
pip3 install websockets
4. Set Up Shared Configuration (Optional)
If you use a shared .claude configuration across projects:
python3 setup_claude_dir.py
This creates a symlink from the project’s .claude directory to your shared configuration.
Quick Start
1. Start the WebSocket Server
python3 src/browser-chrome-agent/scripts/server.py --port 9009
2. Connect the Extension
Click the Browser MCP extension icon in Chrome and click Connect.
3. Send Commands
Send JSON commands via stdin (one per line):
{"action": "navigate", "params": {"url": "https://example.com"}}
{"action": "snapshot", "params": {}}
{"action": "click", "params": {"ref": "s1e5"}}
{"action": "screenshot", "params": {"savePath": "./screenshot.png"}}
Available Actions
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add tonyhzk/chrome-agent-skill