这个插件为 SecAgent 提供 screen-understanding__capture_screen 工具,用于在用户明确要求时获取当前计算机整个虚拟桌面的截图,并把 PNG 图片直接交给模型理解。
npm install
npm run build构建产物为 dist/screen-understanding-0.1.0.zip,可在 SecAgent 的插件管理中安装。
- Windows:使用 PowerShell 和 System.Drawing/System.Windows.Forms 捕获虚拟桌面。
- macOS:使用系统
screencapture。 - Linux:依次尝试
gnome-screenshot、scrot和 ImageMagickimport。
截图是敏感数据源。工具描述和 Skill 都要求仅在用户明确请求查看屏幕时调用。