بنقرة واحدة
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