360 Secure SkillHub
360 安全技能中心

Feishu Screenshot

该 Skill 在 Windows/WSL 环境下调用 PowerShell 截取主屏画面并保存为 PNG,随后复制到工作目录,再通过宿主 Agent 的发送动作把图片发送到飞书;流程含硬编码的用户路径,运行依赖宿主环境。

tootw
tootw
热度 87.82
最近更新 2026-05-17 14:44:57
分类:协作依赖:代码执行 / 读写文件应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add feishu-screenshot
Metadata
name
feishu-screenshot
description
截取屏幕并发送到飞书。当用户说"截屏发给飞书"、"截图"、"屏幕截图"时使用这个技能。

飞书截图发送

截取屏幕并快速发送到飞书。

核心流程

第一步:截屏(PowerShell)

/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command "Add-Type -AssemblyName System.Windows.Forms; \$bmp = New-Object System.Drawing.Bitmap([System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width, [System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height); \$graphics = [System.Drawing.Graphics]::FromImage(\$bmp); \$graphics.CopyFromScreen([System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Location, (New-Object System.Drawing.Point(0,0)), [System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Size); \$bmp.Save('C:\Users\edy\Pictures\screenshot.png', [System.Drawing.Imaging.ImageFormat]::Png); \$bmp.Dispose()"

第二步:复制到 workspace

cp /mnt/c/Users/edy/Pictures/screenshot.png /home/edy/.openclaw/workspace/截图.png

第三步:发送到飞书

{
  "action": "send",
  "channel": "feishu",
  "filePath": "/home/edy/.openclaw/workspace/截图.png"
}

注意事项

  • 截屏会保存到 C:\Users\edy\Pictures\screenshot.png
  • 然后复制到 workspace 才能正常发送附件
  • 发送完成后可以删除 workspace 里的临时文件