← 返回 Skills 市场
l1angjy

Douyin Auto Publish 抖音自动上传发布

作者 L1angjy · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
429
总下载
3
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install douyin-auto-publish
功能描述
抖音创作者平台视频上传发布。触发条件:用户要求上传视频到抖音、发布抖音视频、自动上传视频到抖音创作者平台
使用说明 (SKILL.md)

douyin-upload

使用 OpenClaw Browser 工具自动上传视频到抖音创作者平台。

前置要求

  • OpenClaw Gateway 已运行
  • 电脑已安装 Chrome 浏览器
  • 在 Chrome 中登录抖音账号(只需一次,之后自动继承登录态)

核心原则

只用 target="host",不要填 profile 参数。

  • target="host" - 继承 Chrome 登录态
  • profile="user" - 需要开启 remote debugging,不稳定
  • profile="chrome-relay" - HTTP 404
  • target="sandbox" - 独立沙盒,无登录态

工作流程

Step 1: 打开上传页面

browser(action="navigate", target="host", url="https://creator.douyin.com/creator-micro/content/upload")

Step 2: 关闭弹窗

如果页面出现弹窗,先关闭:

// 1. 获取当前页面所有可交互元素
browser(action="snapshot", target="host", compact=true, depth=2)

// 2. 在返回结果中查找包含或匹配"我知道了"的按钮,拿到其 ref
// 3. 点击该按钮
browser(action="act", target="host", request={"kind": "click", "ref": "\x3C找到的ref>"})

关键:不要硬编码 ref! 先 snapshot,再从结果中根据文字内容找到对应元素的 ref。

Step 4: 准备视频文件

浏览器 tool 只能上传到 /tmp/openclaw/uploads 目录:

mkdir -p /tmp/openclaw/uploads
cp \x3C视频路径> /tmp/openclaw/uploads/

Step 5: 点击上传按钮

// 1. 获取上传页面的元素列表
browser(action="snapshot", target="host", compact=true, depth=2)

// 2. 查找包含或匹配"上传视频"文字的按钮,拿到 ref
// 3. 点击上传按钮
browser(action="act", target="host", request={"kind": "click", "ref": "\x3C找到的ref>"})

Step 6: 上传文件

点击上传按钮后会弹出文件选择框:

// 1. 先 snapshot 找到 Choose File 或文件输入/上传框的 ref
browser(action="snapshot", target="host", compact=true, depth=2)

// 2. 上传文件
browser(action="upload", target="host", paths=["/tmp/openclaw/uploads/\x3C文件名>"], ref="\x3C找到的ref>")

Step 7: 等待视频解析

页面自动跳转到发布编辑页,显示进度条"0% 文件解析中,请稍等...",等待视频解析完成后继续。

Step 8: 填写标题

// 1. 获取当前页面元素
browser(action="snapshot", target="host", compact=true, depth=2)

// 2. 查找标题输入框(placeholder 包含或匹配"标题"或"输入标题"的输入框)
// 3. 点击输入框并输入标题
browser(action="act", target="host", request={"kind": "click", "ref": "\x3C找到的ref>"})
browser(action="act", target="host", request={"kind": "type", "ref": "\x3C找到的ref>", "text": "\x3C用户提供的标题>"})

Step 9: 设置作品权限

// 1. 获取当前页面元素
browser(action="snapshot", target="host", compact=true, depth=2)

// 2. 查找包含或匹配"公开""好友可见""仅自己可见"或类似文字的单选框, 默认选择"公开"
// 3. 点击选中
browser(action="act", target="host", request={"kind": "click", "ref": "\x3C找到的ref>"})

Step 10: 发布

// 1. 获取当前页面元素
browser(action="snapshot", target="host", compact=true, depth=2)

// 2. 查找包含或匹配"发布"文字的按钮
// 3. 点击发布
browser(action="act", target="host", request={"kind": "click", "ref": "\x3C找到的ref>"})

成功标志:页面显示「共 X 个作品」「已发布」状态。

完整流程模板

// 1. 打开上传页面
browser(action="navigate", target="host", url="https://creator.douyin.com/creator-micro/content/upload")

// 2. 关闭弹窗
browser(action="snapshot", target="host", compact=true, depth=2)
// → 从结果中找"我知道了"按钮的 ref,然后点击

// 3. 准备视频文件(需在 terminal 执行)
// mkdir -p /tmp/openclaw/uploads && cp \x3Cpath> /tmp/openclaw/uploads/

// 4. 点击上传按钮
browser(action="snapshot", target="host", compact=true, depth=2)
// → 从结果中找"上传视频"按钮的 ref,然后点击

// 5. 上传文件
browser(action="snapshot", target="host", compact=true, depth=2)
// → 从结果中找文件输入框的 ref,然后上传
browser(action="upload", target="host", paths=["/tmp/openclaw/uploads/\x3C文件名>"], ref="\x3Cref>")

// 6. 等待解析后填写标题
sleep 15
browser(action="snapshot", target="host", compact=true, depth=2)
// → 从结果中找标题输入框的 ref,然后点击并输入

// 7. 设置仅自己可见
browser(action="snapshot", target="host", compact=true, depth=2)
// → 从结果中找"仅自己可见"选项的 ref,然后点击

// 8. 发布
browser(action="snapshot", target="host", compact=true, depth=2)
// → 从结果中找"发布"按钮的 ref,然后点击

重要提示

  1. 每次操作前都要先 snapshot - ref 是动态的,每次快照都不同
  2. 从 snapshot 结果中根据文字内容查找 ref - 不要硬编码
  3. 页面跳转后需要重新 snapshot - 元素 ref 会失效
  4. 视频必须复制到 /tmp/openclaw/uploads/ - 浏览器 tool 的限制
  5. 当用户还需要未提及的操作时, 也是同样的方法匹配对应的ref, 然后找到匹配的选项

常见问题

Q: 为什么提示需要登录? A: 请确保 Chrome 已登录抖音。使用 target="host" 会自动继承 Chrome 的登录态。

Q: Element not found 错误? A: 页面可能跳转了,需要重新执行 snapshot 获取最新元素。

Q: 为什么 ref 每次都不一样? A: 抖音页面动态渲染,每次 snapshot 生成的 ref 不同。这是正常现象。

安全使用建议
This skill appears to do what it says, but it will control your local Chrome browser and act using your logged-in Douyin account if you use target="host". Before installing or using it: 1) Prefer testing with a throwaway/creator account so inadvertent posts won't affect your main account; 2) Be aware the agent can publish as you while Chrome is logged in—use target="sandbox" if you want isolation (note: sandbox requires separate login); 3) Only place files you intend to upload into /tmp/openclaw/uploads and verify the file names; 4) Monitor the first runs manually to confirm the sequence of actions; 5) Avoid giving this skill additional credentials or admin-level access, which it does not request. If you want higher assurance, request the author to provide a signed source/homepage or an install package from a known registry.
功能分析
Type: OpenClaw Skill Name: douyin-auto-publish Version: 1.1.0 The skill is designed to automate video uploads to the Douyin creator platform using the OpenClaw browser tool. It provides clear instructions for the AI agent to navigate the site, handle file uploads via a temporary directory (/tmp/openclaw/uploads/), and interact with UI elements based on real-time snapshots. While it utilizes high-privilege browser access (target="host") to inherit the user's login state, this behavior is transparently documented and directly supports the stated functionality without any signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description (automatic upload to Douyin creator platform) match the instructions: the SKILL.md uses the OpenClaw Browser tool to navigate creator.douyin.com, find page elements, upload a file, fill title, and click publish. No unrelated services, binaries, or credentials are requested.
Instruction Scope
Instructions require controlling the host Chrome session via target="host" to inherit login state and instruct the agent to read/upload files from /tmp/openclaw/uploads. This is expected for an uploader but carries the implicit capability to perform actions as the logged-in user (e.g., publish content). The skill does not instruct reading other host files or environment variables.
Install Mechanism
Instruction-only skill with no install spec and no code files. No downloads or installs are performed by the skill itself, minimizing disk-write risk.
Credentials
The skill does not request environment variables, credentials, or config paths. The only host access it needs (and documents) is to read files placed into /tmp/openclaw/uploads and to control the user's Chrome session; both are proportional to the stated task.
Persistence & Privilege
always:false (normal). The main privilege of concern is runtime access to the user's Chrome session (target="host"), which is necessary for inheriting login but also gives the agent the ability to act as the logged-in user. The skill does not request permanent presence or modify other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-auto-publish
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-auto-publish 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Display name Changed
v1.0.1
-Readme.md updated. - Functionality is the same as the previous release (1.0.0).
v1.0.0
Initial release of douyin-auto-publish. - Provides automated video upload and publishing for the Douyin creator platform via OpenClaw Browser. - Requires prior Chrome login and video upload to /tmp/openclaw/uploads. - Uses dynamic element detection (snapshot + ref) for all interactions; avoids hardcoding UI references. - Includes detailed, step-by-step instructions for upload, title entry, permission setting, and publishing.
元数据
Slug douyin-auto-publish
版本 1.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Douyin Auto Publish 抖音自动上传发布 是什么?

抖音创作者平台视频上传发布。触发条件:用户要求上传视频到抖音、发布抖音视频、自动上传视频到抖音创作者平台. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 429 次。

如何安装 Douyin Auto Publish 抖音自动上传发布?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-auto-publish」即可一键安装,无需额外配置。

Douyin Auto Publish 抖音自动上传发布 是免费的吗?

是的,Douyin Auto Publish 抖音自动上传发布 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Douyin Auto Publish 抖音自动上传发布 支持哪些平台?

Douyin Auto Publish 抖音自动上传发布 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Douyin Auto Publish 抖音自动上传发布?

由 L1angjy(@l1angjy)开发并维护,当前版本 v1.1.0。

💬 留言讨论