slack by vercel-labs/agent-browser
npx skills add https://github.com/vercel-labs/agent-browser --skill slack与 Slack 工作区交互,以检查消息、提取数据并自动化常见任务。
连接到现有的 Slack 浏览器会话或打开 Slack:
# 连接到端口 9222 上的现有会话(适用于已打开的 Slack)
agent-browser connect 9222
# 或者,如果 Slack 未运行,则打开它
agent-browser open https://app.slack.com
然后拍摄快照以查看可用的内容:
agent-browser snapshot -i
@e1、@e2 等)的交互元素# 示例:检查未读频道
agent-browser connect 9222
agent-browser snapshot -i
# 查找“更多未读”按钮
agent-browser click @e21 # “更多未读”按钮的引用
agent-browser screenshot slack-unreads.png
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 连接到 Slack
agent-browser connect 9222
# 拍摄快照以定位未读按钮
agent-browser snapshot -i
# 查找:
# - “更多未读”按钮(通常在侧边栏顶部附近)
# - 活动选项卡中的“未读”切换开关(显示未读计数)
# - 带有徽章/粗体文本指示未读的频道名称
# 导航到活动选项卡以在一个视图中查看所有未读内容
agent-browser click @e14 # 活动选项卡(引用可能不同)
agent-browser wait 1000
agent-browser screenshot activity-unreads.png
# 或者检查私信选项卡
agent-browser click @e13 # 私信选项卡
agent-browser screenshot dms.png
# 或者在侧边栏中展开“更多未读”
agent-browser click @e21 # 更多未读按钮
agent-browser wait 500
agent-browser screenshot expanded-unreads.png
# 在侧边栏中或按名称搜索频道
agent-browser snapshot -i
# 在列表中查找频道名称(例如,“engineering”、“product-design”)
# 点击频道树形项目引用
agent-browser click @e94 # 示例:engineering 频道引用
agent-browser wait --load networkidle
agent-browser screenshot channel.png
# 使用 Slack 搜索
agent-browser snapshot -i
agent-browser click @e5 # 搜索按钮(典型引用)
agent-browser fill @e_search "keyword"
agent-browser press Enter
agent-browser wait --load networkidle
agent-browser screenshot search-results.png
# 获取所有可见频道的列表
agent-browser snapshot --json > slack-snapshot.json
# 解析频道名称和元数据
# 查找 level=2 的 treeitem 元素(部分下的子频道)
# 打开一个频道
agent-browser click @e_channel_ref
agent-browser wait 1000
# 获取频道信息(成员、描述等)
agent-browser snapshot -i
agent-browser screenshot channel-details.png
# 滚动浏览消息
agent-browser scroll down 500
agent-browser screenshot channel-messages.png
当您需要记录 Slack 中的发现时:
# 拍摄带注释的截图(显示元素编号)
agent-browser screenshot --annotate slack-state.png
# 拍摄整页截图
agent-browser screenshot --full slack-full.png
# 获取当前 URL 以供参考
agent-browser get url
# 获取页面标题
agent-browser get title
了解 Slack 的侧边栏有助于您高效导航:
- Threads
- Huddles
- Drafts & sent
- Directories
- [Section Headers - External connections, Starred, Channels, etc.]
- [Channels listed as treeitems]
- Direct Messages
- [DMs listed]
- Apps
- [App shortcuts]
- [More unreads] button (toggles unread channels list)
需要查找的关键引用:
@e12 - 主页选项卡(通常)@e13 - 私信选项卡@e14 - 活动选项卡@e5 - 搜索按钮@e21 - 更多未读按钮(因会话而异)点击频道后,您会看到以下选项卡:
点击选项卡引用以切换视图并获取不同的信息。
# 获取消息或元素的文本
agent-browser get text @e_message_ref
# 将完整快照保存为 JSON 以便进行程序化解析
agent-browser snapshot --json > output.json
# 查找:
# - 频道名称(treeitem 中的 name 字段)
# - 消息内容(在 listitem/document 元素中)
# - 用户名(包含用户信息的 button 元素)
# - 时间戳(包含时间信息的 link 元素)
# 展开未读部分后:
agent-browser snapshot -i | grep -c "treeitem"
# 未读部分中每个带有频道名称的 treeitem 代表一个未读项
agent-browser connect 9222。这比打开新浏览器更快。snapshot -i 来识别引用。snapshot --json 获取机器可读的输出。sleep 1,让 UI 有时间更新。agent-browser scroll down 300 --selector ".p-sidebar" 在 Slack 侧边栏内滚动。agent-browser console
agent-browser errors
agent-browser get url
agent-browser get title
agent-browser screenshot page-state.png
#!/bin/bash
# 连接到 Slack
agent-browser connect 9222
# 拍摄初始快照
echo "=== Checking Slack unreads ==="
agent-browser snapshot -i > snapshot.txt
# 检查活动选项卡中的未读内容
agent-browser click @e14 # 活动选项卡
agent-browser wait 1000
agent-browser screenshot activity.png
ACTIVITY_RESULT=$(agent-browser get text @e_main_area)
echo "Activity: $ACTIVITY_RESULT"
# 检查私信
agent-browser click @e13 # 私信选项卡
agent-browser wait 1000
agent-browser screenshot dms.png
# 检查侧边栏中的未读频道
agent-browser click @e21 # 更多未读按钮
agent-browser wait 500
agent-browser snapshot -i > unreads-expanded.txt
agent-browser screenshot unreads.png
# 摘要
echo "=== Summary ==="
echo "See activity.png, dms.png, and unreads.png for full details"
? 查看快捷键列表每周安装量
8.4K
仓库
GitHub Stars
24.7K
首次出现
2026年2月28日
安全审计
安装于
codex7.8K
opencode7.8K
gemini-cli7.8K
cursor7.7K
github-copilot7.7K
kimi-cli7.7K
Interact with Slack workspaces to check messages, extract data, and automate common tasks.
Connect to an existing Slack browser session or open Slack:
# Connect to existing session on port 9222 (typical for already-open Slack)
agent-browser connect 9222
# Or open Slack if not already running
agent-browser open https://app.slack.com
Then take a snapshot to see what's available:
agent-browser snapshot -i
@e1, @e2, etc.)# Example: Check unread channels
agent-browser connect 9222
agent-browser snapshot -i
# Look for "More unreads" button
agent-browser click @e21 # Ref for "More unreads" button
agent-browser screenshot slack-unreads.png
# Connect to Slack
agent-browser connect 9222
# Take snapshot to locate unreads button
agent-browser snapshot -i
# Look for:
# - "More unreads" button (usually near top of sidebar)
# - "Unreads" toggle in Activity tab (shows unread count)
# - Channel names with badges/bold text indicating unreads
# Navigate to Activity tab to see all unreads in one view
agent-browser click @e14 # Activity tab (ref may vary)
agent-browser wait 1000
agent-browser screenshot activity-unreads.png
# Or check DMs tab
agent-browser click @e13 # DMs tab
agent-browser screenshot dms.png
# Or expand "More unreads" in sidebar
agent-browser click @e21 # More unreads button
agent-browser wait 500
agent-browser screenshot expanded-unreads.png
# Search for channel in sidebar or by name
agent-browser snapshot -i
# Look for channel name in the list (e.g., "engineering", "product-design")
# Click on the channel treeitem ref
agent-browser click @e94 # Example: engineering channel ref
agent-browser wait --load networkidle
agent-browser screenshot channel.png
# Use Slack search
agent-browser snapshot -i
agent-browser click @e5 # Search button (typical ref)
agent-browser fill @e_search "keyword"
agent-browser press Enter
agent-browser wait --load networkidle
agent-browser screenshot search-results.png
# Get list of all visible channels
agent-browser snapshot --json > slack-snapshot.json
# Parse for channel names and metadata
# Look for treeitem elements with level=2 (sub-channels under sections)
# Open a channel
agent-browser click @e_channel_ref
agent-browser wait 1000
# Get channel info (members, description, etc.)
agent-browser snapshot -i
agent-browser screenshot channel-details.png
# Scroll through messages
agent-browser scroll down 500
agent-browser screenshot channel-messages.png
When you need to document findings from Slack:
# Take annotated screenshot (shows element numbers)
agent-browser screenshot --annotate slack-state.png
# Take full-page screenshot
agent-browser screenshot --full slack-full.png
# Get current URL for reference
agent-browser get url
# Get page title
agent-browser get title
Understanding Slack's sidebar helps you navigate efficiently:
- Threads
- Huddles
- Drafts & sent
- Directories
- [Section Headers - External connections, Starred, Channels, etc.]
- [Channels listed as treeitems]
- Direct Messages
- [DMs listed]
- Apps
- [App shortcuts]
- [More unreads] button (toggles unread channels list)
Key refs to look for:
@e12 - Home tab (usually)@e13 - DMs tab@e14 - Activity tab@e5 - Search button@e21 - More unreads button (varies by session)After clicking on a channel, you'll see tabs:
Click tab refs to switch views and get different information.
# Get a message or element's text
agent-browser get text @e_message_ref
# Full snapshot as JSON for programmatic parsing
agent-browser snapshot --json > output.json
# Look for:
# - Channel names (name field in treeitem)
# - Message content (in listitem/document elements)
# - User names (button elements with user info)
# - Timestamps (link elements with time info)
# After expanding unreads section:
agent-browser snapshot -i | grep -c "treeitem"
# Each treeitem with a channel name in the unreads section is one unread
agent-browser connect 9222 if Slack is already open. This is faster than opening a new browser.snapshot -i to identify refs before clicking buttons.snapshot --json for machine-readable output.sleep 1 between rapid interactions to let the UI update.agent-browser scroll down 300 --selector ".p-sidebar" to scroll within the Slack sidebar if channel list is long.agent-browser console
agent-browser errors
agent-browser get url
agent-browser get title
agent-browser screenshot page-state.png
#!/bin/bash
# Connect to Slack
agent-browser connect 9222
# Take initial snapshot
echo "=== Checking Slack unreads ==="
agent-browser snapshot -i > snapshot.txt
# Check Activity tab for unreads
agent-browser click @e14 # Activity tab
agent-browser wait 1000
agent-browser screenshot activity.png
ACTIVITY_RESULT=$(agent-browser get text @e_main_area)
echo "Activity: $ACTIVITY_RESULT"
# Check DMs
agent-browser click @e13 # DMs tab
agent-browser wait 1000
agent-browser screenshot dms.png
# Check unread channels in sidebar
agent-browser click @e21 # More unreads button
agent-browser wait 500
agent-browser snapshot -i > unreads-expanded.txt
agent-browser screenshot unreads.png
# Summary
echo "=== Summary ==="
echo "See activity.png, dms.png, and unreads.png for full details"
? in Slack for shortcut listWeekly Installs
8.4K
Repository
GitHub Stars
24.7K
First Seen
Feb 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.8K
opencode7.8K
gemini-cli7.8K
cursor7.7K
github-copilot7.7K
kimi-cli7.7K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装
SVG Logo Designer - AI 驱动的专业矢量标识设计工具,生成可缩放品牌标识
1,200 周安装