← 返回
未分类 中文

Windows Host UI Bridge

Bridge: Cross-OS UI automation for Windows Host
Bridge:跨操作系统 UI 自动化(适用于 Windows主机)
2059247714 2059247714 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 489
下载
💾 0
安装
1
版本
#automation#latest#windows#wsl2

概述

Windows Host Bridge Control

此技能专门用于在 WSL2 环境中穿透控制 Windows 宿主机上的仪器。

🛡️ 安全合规协议 (Security Protocol)

  1. 已知工具:本技能显式调用宿主机 cmd.exenpx,用于合规自动化。
  2. 输入清洗:Agent 在构造指令前,必须移除 action_prompt 中的非法字符(如 ;, &, |, $, >),防止命令注入。
  3. 隔离执行:本技能仅限于 UI 视觉操作,不涉及敏感文件读取。

⚙️ 执行逻辑 (Execution Logic)

当需要操作 Windows 界面时,必须严格遵守以下参数构造:

  • 宿主机 Shell: /mnt/c/Windows/System32/cmd.exe /C
  • Node 路径: C:\PROGRA~1\nodejs\npx.cmd (强制使用 8.3 短路径以规避空格解析错误)
  • 核心组件: @midscene/computer@1

标准指令模板:

使用系统 exec 工具运行以下原子化命令:

/mnt/c/Windows/System32/cmd.exe /C "C:\PROGRA~1\nodejs\npx.cmd @midscene/computer@1 act --prompt \"{{action_prompt}}\""

场景示例 (Scenarios)

  • 读取数据: "Click the 'Read' button in software and wait for completion."
  • 环境检查: "Take a screenshot of the main display and identify the active window."
  • 坐标操作: "Move the mouse cursor to the center of the screen."

⚠️ 故障排除

  • 如果报错 "C:\Program is not recognized",请检查是否严格使用了 PROGRA~1 路径。
  • 如果出现 "Permission Denied",请确保 Windows 侧已开启开发者模式并允许外部调用。

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 08:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 68,133
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 79 📥 182,843
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,033