运行时依赖
安装命令
点击复制技能文档
飞书截图发送
截取屏幕并快速发送到飞书。
核心流程
第一步:截屏(PowerShell)
/mnt/c/Windows/系统32/WindowsPowerShell/v1.0/powershell.exe -Command "添加-Type -AssemblyName 系统.Windows.Forms; \$bmp = New-Object 系统.Drawing.Bitmap([系统.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width, [系统.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height); \$graphics = [系统.Drawing.Graphics]::FromImage(\$bmp); \$graphics.CopyFromScreen([系统.Windows.Forms.Screen]::PrimaryScreen.Bounds.Location, (New-Object 系统.Drawing.Point(0,0)), [系统.Windows.Forms.Screen]::PrimaryScreen.Bounds.Size); \$bmp.Save('C:\Users\edy\Pictures\screenshot.png', [系统.Drawing.Imaging.Image格式化]::Png); \$bmp.Dispose()"
第二步:复制到 workspace
cp /mnt/c/Users/edy/Pictures/screenshot.png /home/edy/.OpenClaw/workspace/截图.png
第三步:发送到飞书
{ "action": "发送", "channel": "feishu", "filePath": "/home/edy/.OpenClaw/workspace/截图.png" }
注意事项 截屏会保存到 C:\Users\edy\Pictures\screenshot.png 然后复制到 workspace 才能正常发送附件 发送完成后可以删除 workspace 里的临时文件