← 返回 Skills 市场
nontrace

Rustdesk Screenshot

作者 yaohx · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
32
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install rustdesk-screenshot
功能描述
启动 RustDesk 远程桌面客户端,清理或创建截图目录,截取全屏并返回截图文件。当用户请求"打开 RustDesk 并截图"、"帮我截图先启动 RustDesk"、"运行截图技能"或"清理截图目录然后截图"时使用此技能。
使用说明 (SKILL.md)

RustDesk 启动与截图技能

概述

该技能在 Windows 环境下自动完成:显示桌面 → 启动 RustDesk → 准备截图目录 → 全屏截图 → 返回截图路径。

触发条件

用户发出以下意图时触发:

  • "打开 RustDesk 并截图"
  • "帮我截个图,先启动 RustDesk"
  • "运行截图技能"
  • "清理截图目录,然后截图"
  • 或任何涉及 RustDesk + 截图的指令

执行流程

调用 scripts/screenshot.py 脚本完成所有操作:

python scripts/screenshot.py

脚本按顺序执行:

  1. 显示桌面 — 通过 COM 对象最小化所有窗口
  2. 启动 RustDesk — 以默认路径或 RUSTDESK_PATH 环境变量启动
  3. 准备目录 — 清空/创建 D:\CopyFromScreen(或 SCREENSHOT_DIR 环境变量指定路径)
  4. 全屏截图 — 使用 Pillow ImageGrab,保存为带时间戳的 PNG
  5. 返回结果 — JSON 格式输出截图文件路径

脚本执行完成后将生成的截图发给用户

环境变量(可选参数)

变量名 类型 默认值 说明
RUSTDESK_PATH string D:\Program Files\RustDesk\rustdesk.exe RustDesk 可执行文件路径
SCREENSHOT_DIR string D:\CopyFromScreen 截图保存目录
WAIT_SECONDS int 2 启动 RustDesk 后等待其窗口显示的秒数

可通过在调用前设置环境变量来覆盖默认值。

输出格式

成功时 stdout 输出:

{
  "success": true,
  "screenshot_path": "D:\\CopyFromScreen\\2026-06-10_15-30-45.png",
  "message": "截图已保存至 D:\\CopyFromScreen\\2026-06-10_15-30-45.png"
}

失败时 stderr 输出:

{
  "success": false,
  "error": "错误描述信息"
}

依赖

  • Python 3.x
  • Pillow (pip install Pillow)
  • Windows 操作系统

注意事项

权限问题

由于权限问题,该技能只能打开rustdesk程序,并不能启动服务,推荐将rustdesk设置为开机启动,如果出门后忘记密码可使用本技能查看临时密码

微信渠道发送截图

微信渠道不能用 read 工具发图(用户收不到)。 正确方式:在回复中用 MEDIA:\x3C文件路径> 单独一行,直接放路径,不加代码块或 Markdown。

MEDIA:C:\Users\yaoho\.openclaw\workspace\filename.png
安全使用建议
Install only if you are comfortable with an agent minimizing your desktop, launching RustDesk, deleting everything under the configured screenshot directory, and sending a full multi-monitor screenshot that may include passwords or private content. Do not point SCREENSHOT_DIR at any important folder, do not override RUSTDESK_PATH unless you fully trust the executable, and avoid using this skill to capture temporary passwords or other secrets.
能力评估
Purpose & Capability
The stated purpose is launching RustDesk and returning a screenshot, which matches the main script, but the documentation explicitly frames screenshots as a way to view a RustDesk temporary password, expanding the skill into sensitive remote-access credential exposure.
Instruction Scope
The trigger language is broad for a workflow that minimizes windows, launches software, clears a directory, captures all screens, and returns the image; the artifacts do not require confirmation before privacy-sensitive or destructive actions.
Install Mechanism
The package is small and transparent, with one Python script and a Pillow dependency. No hidden installer or persistence mechanism was found.
Credentials
The skill is Windows-specific and uses desktop automation, PowerShell COM minimization, full multi-monitor screenshots, and environment-variable overrides; these are powerful capabilities for a screenshot helper and are not tightly contained.
Persistence & Privilege
No persistence is installed, but the script launches an environment-selected executable with shell=True and recursively clears the environment-selected screenshot directory, creating high-impact misuse or misconfiguration risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install rustdesk-screenshot
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /rustdesk-screenshot 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of rustdesk-screenshot skill. - Automates the process of showing desktop, launching RustDesk, preparing (or cleaning) screenshot directory, and capturing a fullscreen screenshot on Windows. - Returns the screenshot file path in a structured JSON format. - Supports intent-based triggers and optional configuration via environment variables. - Provides detailed usage instructions and notes for permission issues and integration with WeChat.
元数据
Slug rustdesk-screenshot
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Rustdesk Screenshot 是什么?

启动 RustDesk 远程桌面客户端,清理或创建截图目录,截取全屏并返回截图文件。当用户请求"打开 RustDesk 并截图"、"帮我截图先启动 RustDesk"、"运行截图技能"或"清理截图目录然后截图"时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 Rustdesk Screenshot?

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

Rustdesk Screenshot 是免费的吗?

是的,Rustdesk Screenshot 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Rustdesk Screenshot 支持哪些平台?

Rustdesk Screenshot 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Rustdesk Screenshot?

由 yaohx(@nontrace)开发并维护,当前版本 v0.1.0。

💬 留言讨论