返回顶部
s

spool线轴

Threads CLI - Read, post, reply, and search on Meta's Threads using OpenClaw browser tool. Use when the user wants to interact with Threads: posting, reading timeline, viewing profiles, replying to threads, or searching.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
2,284
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

spool

spool

使用 OpenClaw 浏览器工具操作 Threads (threads.net)。

前置条件

环境要求

  • - 已启用浏览器工具的 OpenClaw
  • openclaw 浏览器配置文件
  • Threads 账号已登录

无图形界面的服务器环境

需要 Xvfb 虚拟显示器:

bash

1. 安装 Xvfb 并注册服务


sudo apt install -y xvfb
sudo tee /etc/systemd/system/xvfb.service << EOF
[Unit]
Description=X 虚拟帧缓冲
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/Xvfb :99 -screen 0 1920x1080x24
Restart=always
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now xvfb

2. 为 OpenClaw Gateway 添加 DISPLAY 环境变量

mkdir -p ~/.config/systemd/user/openclaw-gateway.service.d echo -e [Service]\nEnvironment=DISPLAY=:99 > ~/.config/systemd/user/openclaw-gateway.service.d/display.conf systemctl --user daemon-reload systemctl --user restart openclaw-gateway

登录(仅首次需要)

browser action=start profile=openclaw
browser action=open profile=openclaw targetUrl=https://www.threads.net/login

要求用户手动登录




使用方法

1. 读取时间线

browser action=open profile=openclaw targetUrl=https://www.threads.net
browser action=snapshot profile=openclaw compact=true

在结果中可查看每条帖子的作者、内容、点赞/评论数。

2. 发帖(完整流程)

步骤 1:前往首页

browser action=open profile=openclaw targetUrl=https://www.threads.net
browser action=snapshot profile=openclaw compact=true

步骤 2:找到并点击 Whats new? 按钮
在 snapshot 中找到包含 Whats new? 或 Empty text field 的按钮的 ref

browser action=act profile=openclaw request={kind:click,ref:e14}

(ref 每次 snapshot 都不同!务必在 snapshot 中确认)

步骤 3:在对话框中输入文本

browser action=snapshot profile=openclaw compact=true

找到 textbox 的 ref 后:

browser action=act profile=openclaw request={kind:type,ref:e14,text:帖子内容}

步骤 4:点击 Post 按钮

browser action=act profile=openclaw request={kind:click,ref:e22}

(Post 按钮的 ref 也需在 snapshot 中确认)

步骤 5:确认

browser action=snapshot profile=openclaw compact=true

→ 如果看到 Posted 文本和 View 链接,则发帖成功!

3. 查看个人资料

browser action=open profile=openclaw targetUrl=https://www.threads.net/@用户名
browser action=snapshot profile=openclaw compact=true

4. 搜索

browser action=open profile=openclaw targetUrl=https://www.threads.net/search?q=搜索词
browser action=snapshot profile=openclaw compact=true

5. 回复帖子

打开帖子

browser action=open profile=openclaw targetUrl=https://www.threads.net/@用户/post/帖子ID browser action=snapshot profile=openclaw compact=true

点击 Reply 按钮(确认 ref 后)

browser action=act profile=openclaw request={kind:click,ref:}

输入文本并发布(与发帖相同)


核心要点

  1. 1. 先拍 snapshot! - 所有操作前先用 snapshot 查看当前页面状态和 ref
  2. ref 每次都会变化 - 始终从 snapshot 结果中重新查找
  3. compact=true - 为节省令牌始终使用
  4. 保持 targetId - 如需在同一标签页操作,使用 targetId 参数
  5. 发帖前确认 - 让用户确认内容后再发帖

故障排除

问题解决方法
浏览器工具无法使用检查 Xvfb 是否运行,确认 DISPLAY=:99 设置,重启 Gateway
未登录
跳转到 /login 页面后要求手动登录 | | 找不到 ref | 重新拍 snapshot,查找相似的文本/按钮 | | 发帖失败 | 检查 Post 按钮是否处于禁用状态(需要先输入文本) |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 spool-1776374376 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 spool-1776374376 技能

通过命令行安装

skillhub install spool-1776374376

下载

⬇ 下载 spool v1.0.1(免费)

文件大小: 2.44 KB | 发布时间: 2026-4-17 14:46

v1.0.1 最新 2026-4-17 14:46
Added detailed step-by-step examples

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部