← Back to Skills Marketplace
nontrace

Rustdesk Screenshot

by yaohx · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
32
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install rustdesk-screenshot
Description
启动 RustDesk 远程桌面客户端,清理或创建截图目录,截取全屏并返回截图文件。当用户请求"打开 RustDesk 并截图"、"帮我截图先启动 RustDesk"、"运行截图技能"或"清理截图目录然后截图"时使用此技能。
README (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
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install rustdesk-screenshot
  3. After installation, invoke the skill by name or use /rustdesk-screenshot
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug rustdesk-screenshot
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Rustdesk Screenshot?

启动 RustDesk 远程桌面客户端,清理或创建截图目录,截取全屏并返回截图文件。当用户请求"打开 RustDesk 并截图"、"帮我截图先启动 RustDesk"、"运行截图技能"或"清理截图目录然后截图"时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 32 downloads so far.

How do I install Rustdesk Screenshot?

Run "/install rustdesk-screenshot" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Rustdesk Screenshot free?

Yes, Rustdesk Screenshot is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Rustdesk Screenshot support?

Rustdesk Screenshot is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Rustdesk Screenshot?

It is built and maintained by yaohx (@nontrace); the current version is v0.1.0.

💬 Comments