linkedin-chrome
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLinkedIn Chrome
LinkedIn Chrome
Manage LinkedIn content through Chrome browser automation: review engagement, reply to comments, publish posts, and schedule content.
通过Chrome浏览器自动化管理LinkedIn内容:查看互动数据、回复评论、发布帖子以及安排内容发布。
Prerequisites
前置条件
- Chrome browser automation available (claude-in-chrome MCP or chrome-devtools-mcp)
- User signed into LinkedIn in the Chrome profile
- If using claude-in-chrome: load tools via ToolSearch before calling them
- 具备Chrome浏览器自动化能力(claude-in-chrome MCP或chrome-devtools-mcp)
- 用户已在Chrome配置文件中登录LinkedIn
- 若使用claude-in-chrome:调用工具前需通过ToolSearch加载工具
Quick Check
快速检查
Before starting, verify LinkedIn is accessible:
- Navigate to
https://www.linkedin.com/feed/ - Take a snapshot. If you see a login wall, tell the user to sign in first. Do not enter credentials.
- If signed in, proceed with the workflow.
开始操作前,验证LinkedIn是否可访问:
- 导航至
https://www.linkedin.com/feed/ - 截取快照。若看到登录界面,告知用户先手动登录,请勿输入凭证。
- 若已登录,继续执行工作流程。
Workflows
工作流程
1. Review Engagement
1. 查看互动数据
Check comments and reactions on recent posts.
Navigate to: https://www.linkedin.com/in/{username}/recent-activity/all/Steps:
- Navigate to the activity page
- Take a snapshot to see post summaries
- Use JavaScript to extract post data if the accessibility tree is limited:
javascript
// Extract visible posts with engagement counts
Array.from(document.querySelectorAll('.feed-shared-update-v2')).slice(0, 10).map(post => {
const text = post.querySelector('.feed-shared-text')?.innerText?.slice(0, 100) || '';
const reactions = post.querySelector('.social-details-social-counts__reactions-count')?.innerText || '0';
const comments = post.querySelector('.social-details-social-counts__comments')?.innerText || '0';
return { text, reactions, comments };
});- For posts with comments, click into each post to read the comment threads
- Summarize: post title snippet, reaction count, comment count, notable commenters
检查近期帖子的评论和互动情况。
导航至:https://www.linkedin.com/in/{username}/recent-activity/all/步骤:
- 导航至活动页面
- 截取快照查看帖子摘要
- 若可访问性树受限,使用JavaScript提取帖子数据:
javascript
// Extract visible posts with engagement counts
Array.from(document.querySelectorAll('.feed-shared-update-v2')).slice(0, 10).map(post => {
const text = post.querySelector('.feed-shared-text')?.innerText?.slice(0, 100) || '';
const reactions = post.querySelector('.social-details-social-counts__reactions-count')?.innerText || '0';
const comments = post.querySelector('.social-details-social-counts__comments')?.innerText || '0';
return { text, reactions, comments };
});- 对有评论的帖子,点击进入查看评论线程
- 汇总信息:帖子标题片段、互动数、评论数、重要评论者
2. Reply to Comments
2. 回复评论
Post replies to specific commenters on your posts.
Steps:
- Navigate to the specific post (use activity page or direct post URL)
- Scroll to the comment section
- Find the target commenter's comment
- Click "Reply" under their comment (not the top-level comment box)
- Take a snapshot to confirm the reply box is open and focused on the right comment
- Type the reply text
- Click the reply/submit button
- Take a snapshot to confirm the reply posted
Reply box targeting:
LinkedIn nests reply boxes. After clicking "Reply" on a comment, the input area appears indented below that comment. Verify by snapshot that:
- The reply box mentions the commenter's name
- You are not accidentally typing in the top-level comment box
Typing strategy:
LinkedIn's editor is a contenteditable div, not a standard input. Use the fill or type tool, not JavaScript injection. If the editor doesn't accept input:
- Click the reply box to focus it
- Use the type/fill tool with the text
- Take a snapshot to verify text appeared before submitting
针对帖子中的特定评论者发布回复。
步骤:
- 导航至目标帖子(使用活动页面或直接帖子URL)
- 滚动至评论区
- 找到目标评论者的评论
- 点击该评论下方的“Reply”按钮(不要点击顶层评论框)
- 截取快照确认回复框已打开并聚焦于正确评论
- 输入回复内容
- 点击回复/提交按钮
- 截取快照确认回复已发布
回复框定位:
LinkedIn的回复框是嵌套式的。点击评论上的“Reply”后,输入区域会显示在该评论下方并缩进。通过快照验证:
- 回复框中提及评论者的名字
- 确保未误输入到顶层评论框中
输入策略:
LinkedIn的编辑器是contenteditable类型的div,而非标准输入框。使用fill或type工具,不要使用JavaScript注入。若编辑器无法接收输入:
- 点击回复框获取焦点
- 使用type/fill工具输入文本
- 提交前截取快照验证文本已显示
3. Publish a New Post
3. 发布新帖子
Steps:
- Navigate to
https://www.linkedin.com/feed/ - Click "Start a post" (the text input area at the top of the feed)
- Wait for the post composer modal to appear
- Take a snapshot to confirm the editor is open
- Click into the text area of the composer
- Type the post content
- Take a snapshot to verify the full text is in the editor
- Click "Post" to publish immediately
After posting:
- Wait 2-3 seconds for LinkedIn to process
- Find the new post (it may show a "View post" link or appear at the top of the feed)
- If a first comment is needed (for links -- see Link Placement below), click "Comment" on the post and add it immediately
步骤:
- 导航至
https://www.linkedin.com/feed/ - 点击“Start a post”(Feed顶部的文本输入区域)
- 等待帖子编辑器弹窗出现
- 截取快照确认编辑器已打开
- 点击编辑器的文本区域
- 输入帖子内容
- 截取快照确认全文已在编辑器中
- 点击“Post”立即发布
发布后操作:
- 等待2-3秒让LinkedIn处理
- 找到新发布的帖子(可能显示“View post”链接或出现在Feed顶部)
- 若需要添加第一条评论(用于放置链接——见下方链接放置规则),立即点击帖子的“Comment”按钮添加
4. Schedule a Post
4. 安排帖子发布
CRITICAL: Use claude-in-chrome (computer tool), NOT chrome-devtools-mcp for scheduling. LinkedIn's scheduler uses custom React inputs that reject CDP-level DOM manipulation. The chrome-devtools-mcp fill/type tools cannot set the date or time. The claude-in-chrome computer tool provides real mouse/keyboard interaction that works.
Steps (using claude-in-chrome computer tool):
- Get tab context with , create a new tab with
tabs_context_mcptabs_create_mcp - Navigate to
https://www.linkedin.com/feed/ - Click "Start a post" using computer tool
left_click - Click into the text area and use to enter post content
type - Click the clock/schedule icon (bottom-left of composer, next to Post button)
- The schedule dialog opens with Date and Time fields
- Set the date: Triple-click the date field to select all, then the new date (e.g., "3/27/2026"). A calendar picker appears. Click the target date on the calendar.
type - Set the time: The time field defaults to the next available slot. If it needs changing, triple-click and type (e.g., "8:00 AM"), then Tab out.
- Verify the header shows the correct "Fri, Mar 27, 8:00 AM" confirmation
- Click "Next" to proceed to the confirmation screen
- The Post button changes to "Schedule". Click "Schedule" to confirm.
- Verify "Post scheduled" toast appears at the bottom.
Important: Scheduled posts cannot have a first comment added at schedule time. Create a calendar reminder for the user to add the first comment when the post goes live.
重要提示:安排发布需使用claude-in-chrome(计算机工具),而非chrome-devtools-mcp。 LinkedIn的日程安排工具使用自定义React输入框,会拒绝CDP级别的DOM操作。chrome-devtools-mcp的fill/type工具无法设置日期或时间。claude-in-chrome计算机工具提供的真实鼠标/键盘交互可正常工作。
步骤(使用claude-in-chrome计算机工具):
- 使用获取标签页上下文,使用
tabs_context_mcp创建新标签页tabs_create_mcp - 导航至
https://www.linkedin.com/feed/ - 使用计算机工具的点击“Start a post”
left_click - 点击文本区域并使用输入帖子内容
type - 点击时钟/日程安排图标(编辑器左下角,Post按钮旁边)
- 打开日程安排对话框,包含日期和时间字段
- 设置日期: 三击日期字段选中全部内容,然后使用输入新日期(例如:"3/27/2026")。会出现日历选择器,点击目标日期。
type - 设置时间: 时间字段默认显示下一个可用时段。若需修改,三击并输入(例如:"8:00 AM"),然后按Tab键确认。
- 验证顶部显示的确认信息是否正确(如"Fri, Mar 27, 8:00 AM")
- 点击“Next”进入确认页面
- Post按钮会变为“Schedule”,点击“Schedule”确认
- 验证底部是否出现“Post scheduled”提示框
注意: 安排发布的帖子无法在安排时添加第一条评论。请为用户创建日历提醒,以便帖子发布时添加第一条评论。
5. Draft Content (No Browser Needed)
5. 撰写内容草稿(无需浏览器)
Draft post content based on existing blog posts, engagement patterns, or user direction. This step does not require browser automation.
Process:
- Read the LinkedIn campaign memory file if it exists
- Check existing blog content for untapped post material
- Draft the post following the Content Guidelines below
- Get user approval before publishing or scheduling
基于现有博客文章、互动模式或用户指示撰写帖子内容。此步骤无需浏览器自动化。
流程:
- 若存在LinkedIn活动记忆文件,读取该文件
- 检查现有博客内容,寻找未利用的帖子素材
- 按照下方内容指南撰写帖子
- 发布或安排前获取用户批准
Content Guidelines
内容指南
Voice
语气风格
Match the user's established LinkedIn voice:
- Direct, conversational, like telling a story over beers
- Specific details: names, years, technologies, outcomes
- No marketing language, no keynote-style closers
- Short paragraphs. One idea per paragraph. Let the reader breathe.
匹配用户已确立的LinkedIn语气:
- 直接、口语化,如同边喝啤酒边讲故事
- 包含具体细节:姓名、年份、技术、成果
- 避免营销话术,不要使用 keynote 风格的结尾
- 段落简短,每段一个观点,让读者有喘息空间
AI Tell Avoidance
避免AI生成痕迹
These patterns signal AI-generated content. Avoid them:
| Pattern | Fix |
|---|---|
| Triple repetition ("real X, real Y, real Z") | Say it once, plainly |
| Balanced closing sentences | End abruptly or casually |
| Parallel structure punchlines | Make it conversational |
| Lists of exactly four items | Use three, or five, or just prose |
| "Here's what I'd tell you" framing | Just say it |
| Keynote-style one-liner endings | End mid-thought or with a short sentence |
| Em dashes | Use periods or commas |
以下模式会暴露AI生成内容,需避免:
| 模式 | 修正方法 |
|---|---|
| 三重重复("真实的X,真实的Y,真实的Z") | 直白表述一次即可 |
| 平衡式结尾句 | 采用突兀或随意的结尾 |
| 平行结构的点睛句 | 改为口语化表达 |
| 恰好四个条目的列表 | 使用三个、五个条目,或仅用散文表述 |
| "我想告诉你的是"这类框架 | 直接说出内容 |
| Keynote风格的单行结尾 | 中途结束或用短句结尾 |
| 破折号 | 使用句号或逗号 |
Link Placement
链接放置
Never put external links in the post body. LinkedIn's algorithm suppresses posts with outbound links.
Always place links in the first comment posted immediately after the post goes live. Format:
The full breakdown: {url}切勿在帖子正文中放置外部链接。 LinkedIn算法会压制包含出站链接的帖子。
务必在帖子发布后立即发布的第一条评论中放置链接。格式如下:
完整解析:{url}Post Structure
帖子结构
What works (based on engagement data):
- Open with a scene: Year, place, specific situation
- Build with concrete details: Technology names, numbers, outcomes
- Land on a lesson: One sentence. Not a motivational quote.
What doesn't work:
- Abstract positioning without a story
- General advice not grounded in experience
- Long analytical posts without a narrative arc
有效结构(基于互动数据):
- 以场景开篇: 年份、地点、具体情境
- 用具体细节展开: 技术名称、数据、成果
- 以经验总结收尾: 一句话,不要用励志名言
无效结构:
- 无故事支撑的抽象定位
- 无经验依据的通用建议
- 无叙事弧线的长篇分析帖
Posting Cadence
发布节奏
- Space posts 1-2 days apart so they don't cannibalize each other's reach
- Best days: Tuesday, Wednesday, Thursday
- Best times: 8-9 AM or 12-1 PM local time
- Reply to comments on existing posts between new posts to maintain engagement
- 帖子间隔1-2天发布,避免互相影响曝光量
- 最佳发布日:周二、周三、周四
- 最佳发布时间:当地时间8-9点或12-13点
- 在新帖子发布间隔期间回复现有帖子的评论,维持互动热度
Agentic Workflow & Vibe Coding
智能工作流与风格编码
- Iterative Drafting: Do not expect the perfect LinkedIn post on the first attempt. Draft a V1, review against the Content Guidelines (checking for "AI tells"), isolate specific tonal issues or formatting errors, refine exactly ONE section at a time, and regenerate until the voice matches the user.
- Vibe Coding: Save your working drafts locally (e.g., in a file) before attempting to use browser automation to publish or schedule. If automation fails, you still have the approved content.
.md
- 迭代式撰写: 不要期望一次就能写出完美的LinkedIn帖子。先撰写第一版,对照内容指南检查(排查AI生成痕迹),找出特定语气问题或格式错误,每次仅优化一个部分,反复修改直到语气匹配用户风格。
- 风格编码: 在尝试使用浏览器自动化发布或安排之前,将工作草稿本地保存(例如保存为文件)。若自动化失败,仍保留已获批准的内容。
.md
DOM Reference
DOM参考
LinkedIn's DOM changes frequently. These selectors are starting points. Always verify with a snapshot before interacting.
LinkedIn的DOM会频繁变化。以下选择器仅作为起点。交互前务必通过快照验证。
Activity Page
活动页面
URL: https://www.linkedin.com/in/{username}/recent-activity/all/
Posts: .feed-shared-update-v2
Post text: .feed-shared-text
Reactions count: .social-details-social-counts__reactions-count
Comments count: .social-details-social-counts__commentsURL: https://www.linkedin.com/in/{username}/recent-activity/all/
Posts: .feed-shared-update-v2
Post text: .feed-shared-text
Reactions count: .social-details-social-counts__reactions-count
Comments count: .social-details-social-counts__commentsPost Composer
帖子编辑器
Trigger: Click "Start a post" on feed page
Text area: contenteditable div inside the modal (.ql-editor or [role="textbox"])
Post button: button with text "Post" (becomes blue/active when text is entered)
Schedule icon: Clock icon button next to Post button触发方式:点击Feed页面上的"Start a post"
文本区域:弹窗内的contenteditable div(.ql-editor或[role="textbox"])
发布按钮:显示“Post”文本的按钮(输入文本后变为蓝色/激活状态)
日程安排图标:Post按钮旁边的时钟图标按钮Comment Box
评论框
Top-level: .comments-comment-box__form [role="textbox"]
Reply box: Appears after clicking "Reply" on a comment, nested under that comment
Submit: Button with text "Comment" or "Reply" inside the comment form顶层:.comments-comment-box__form [role="textbox"]
回复框:点击评论的“Reply”后出现,嵌套在该评论下方
提交按钮:评论表单内显示“Comment”或“Reply”文本的按钮Troubleshooting
故障排除
Login wall
登录界面
LinkedIn requires authentication. Do not attempt to log in. Tell the user to sign in manually in the Chrome profile, then retry.
LinkedIn需要身份验证。请勿尝试自动登录。告知用户在Chrome配置文件中手动登录后重试。
Editor not accepting text
编辑器无法接收文本
LinkedIn uses a rich text editor (contenteditable). If typing doesn't work:
- Click the editor to ensure focus
- Try using the keyboard type tool instead of fill
- As a last resort, use JavaScript: followed by dispatching an
document.querySelector('[role="textbox"]').innerText = 'your text'eventinput
LinkedIn使用富文本编辑器(contenteditable)。若输入无效:
- 点击编辑器获取焦点
- 尝试使用键盘type工具而非fill工具
- 最后可尝试使用JavaScript:,然后触发
document.querySelector('[role="textbox"]').innerText = 'your text'事件input
Post not appearing after publish
发布后帖子未显示
After clicking "Post", LinkedIn may show a brief confirmation. The post sometimes doesn't appear at the top of the feed immediately. Navigate to the activity page to verify.
点击“Post”后,LinkedIn可能会显示短暂的确认信息。帖子有时不会立即出现在Feed顶部。导航至活动页面验证。
Stale snapshots
快照过时
LinkedIn dynamically loads content. If elements from a snapshot are gone, take a fresh snapshot. Comment sections especially change as threads expand/collapse.
LinkedIn会动态加载内容。若快照中的元素已消失,重新截取快照。评论区尤其会随线程展开/折叠而变化。