← 返回
未分类

Capture Windows Screen

Capture the current Windows desktop from this WSL/OpenClaw environment and return the PNG path for inspection or delivery. Use when the user asks to screensh...
从当前WSL/OpenClaw环境捕获Windows桌面,返回PNG文件路径,以供检查或交付;当用户请求截屏时使用。
hansheng-li hansheng-li 来源
未分类 clawhub v0.1.0 1 版本 99790.4 Key: 无需
★ 0
Stars
📥 476
下载
💾 0
安装
1
版本
#latest#openclaw windows wsl2 screenshot desktop-automation

概述

Capture Windows Screen

Use the bundled script for screenshot requests in this environment. It calls the Windows PowerShell helper, copies the PNG into a chosen staging folder, and prints the staged path.

Use two staging modes:

  • Analysis / inspection: keep the default workspace tmp-media/ staging.
  • Messaging-surface delivery: prefer ~/.openclaw/media/outbound/ so the file is already in OpenClaw's managed outbound media store.

Quick workflow

  1. For analysis or inspection, run bash scripts/capture-windows-screen.sh from this skill directory.
  2. For delivery back to a chat app, run STAGE_DIR=/home/lhs/.openclaw/media/outbound bash scripts/capture-windows-screen.sh.
  3. Treat the printed path as the staged screenshot to use next.
  4. If the user wants the image in chat, prefer the managed outbound path from step 2 and send it with a bare MEDIA: line when possible.
  5. If the user wants analysis, inspect the staged image after capture.

Commands

Analysis / inspection path:

bash scripts/capture-windows-screen.sh

Delivery-safe path for chat apps:

STAGE_DIR=/home/lhs/.openclaw/media/outbound bash scripts/capture-windows-screen.sh

Expected output:

/home/lhs/.openclaw/workspace/tmp-media/latest-screen-YYYYMMDD-HHMMSS.png

or, for delivery-safe staging:

/home/lhs/.openclaw/media/outbound/latest-screen-YYYYMMDD-HHMMSS.png

Environment assumptions

This skill assumes these host-side paths exist:

  • PowerShell: /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
  • Capture helper: C:\OpenClaw\capture-screen.ps1
  • Screenshot output: C:\OpenClaw\latest-screen.png
  • WSL mirror path: /mnt/c/OpenClaw/latest-screen.png
  • Workspace staging directory for inspection copies: /home/lhs/.openclaw/workspace/tmp-media
  • Managed outbound media store for delivery retries / chat attachments: /home/lhs/.openclaw/media/outbound

Failure handling

  • If PowerShell or the helper script is missing, check local machine-specific notes before changing paths.
  • If the command succeeds but the PNG is missing, rerun once, then verify the helper still writes to C:\OpenClaw\latest-screen.png.
  • If the browser shows the image but Telegram or another chat app does not receive it, assume the file stayed at local-preview level. Restage it into /home/lhs/.openclaw/media/outbound and retry using only the managed outbound path.
  • Do not assume a workspace tmp-media/ path is delivery-safe just because the web UI can preview it.
  • Do not invent alternate screenshot commands unless the configured path is clearly broken.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-03 10:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,514
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,854
it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 45 📥 29,431