一键导入
Automate LinkedIn tasks using agent-browser connected to the local Chrome browser via CDP.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automate LinkedIn tasks using agent-browser connected to the local Chrome browser via CDP.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | |
| description | Automate LinkedIn tasks using agent-browser connected to the local Chrome browser via CDP. |
This skill enables browser automation on LinkedIn using agent-browser connected to the local Chrome instance.
Chrome is already running on this machine with CDP enabled on port 9223.
IMPORTANT: localhost doesn't resolve in this environment. You MUST use 127.0.0.1.
Use agent-browser with the --cdp flag and the full HTTP URL:
agent-browser --cdp http://127.0.0.1:9223 <command>
NOTE: Always use http://127.0.0.1:9223, never localhost, ws://, or just a port number.
agent-browser has a 10 second default timeout which is often too short for LinkedIn.
# This is FASTER than snapshot when page is slow to load
agent-browser --cdp http://127.0.0.1:9223 eval "document.body.innerText"
agent-browser --cdp http://127.0.0.1:9223 eval "window.location.href"
agent-browser --cdp http://127.0.0.1:9223 get title
agent-browser --cdp http://127.0.0.1:9223 eval "window.location.href"
agent-browser --cdp http://127.0.0.1:9223 open https://www.linkedin.com/in/me/ 2>&1 || true
sleep 3
agent-browser --cdp http://127.0.0.1:9223 eval "document.body.innerText"
This approach is MORE RELIABLE than using snapshot because:
eval runs immediately without waiting for navigation to complete| Command | Purpose |
|---|---|
eval "document.body.innerText" | Get all visible text (FAST) |
eval "window.location.href" | Get current URL |
get title | Get page title |
open <url> 2>&1 || true | Navigate (ignore timeout) |
snapshot | Get element tree (may timeout) |
# Navigate (ignore timeout error)
agent-browser --cdp http://127.0.0.1:9223 open https://www.linkedin.com/in/me/ 2>&1 || true
# Wait for content
sleep 3
# Get page text and search for follower count
agent-browser --cdp http://127.0.0.1:9223 eval "document.body.innerText"
Look for patterns like:
Same approach - look for patterns like:
# Navigate directly to his profile
agent-browser --cdp http://127.0.0.1:9223 open "https://www.linkedin.com/in/williamhgates/" 2>&1 || true
sleep 3
agent-browser --cdp http://127.0.0.1:9223 eval "document.body.innerText"
Look for "39,823,879 followers" or similar large number.
IMPORTANT: When you find the answer, always output it clearly:
ANSWER: 1234
or
ANSWER: 39,816,349
eval "document.body.innerText" instead of snapshot2>&1 || true to ignore errors, then use sleep and evalsleep 3 before getting content# 1. Check current URL
agent-browser --cdp http://127.0.0.1:9223 eval "window.location.href"
# 2. Navigate (ignore any timeout)
agent-browser --cdp http://127.0.0.1:9223 open https://www.linkedin.com/in/me/ 2>&1 || true
# 3. Wait for page to render
sleep 3
# 4. Get all page text
agent-browser --cdp http://127.0.0.1:9223 eval "document.body.innerText"
# 5. Find the follower count in the output and report:
# ANSWER: 1220