dsh-uia-agent
Manifest validWindows UI Automation agent for DeepSeek Harness: enumerate/snapshot/find/click/set_text/scroll/drag/swipe/screenshot + window state as a dsh plugin (single C++ exe)
dsh-uia-agent - Windows UI Automation agent for DeepSeek Harness
中文 | English
A dsh plugin that registers one uia tool, letting the model enumerate windows,
snapshot UI trees, find controls, click, type text, scroll/drag/swipe, screenshot,
and control window state (topmost / minimize / maximize / restore / close).
- Tool exe lives in its own repo: uia-agent
(C++17 / MSVC single exe; the release ships
uia_agent.exe). - This plugin embeds the exe as a base64 asset (
assets/uia_agent.exe.b64) and self-releases it to the fixed location%DSH_HOME%\bin\uia_agent.exeon startup. If release fails, it console.errors and the tool call reports how to add the exe.
One-click install (beginners)
Either of these two self-contained files installs everything. Download ONE of them from the repo root or from the v1.0 release page (they do not depend on each other):
- install.cmd — double-click it on Windows
- install.ps1 —
powershell -ExecutionPolicy Bypass -File install.ps1
The script checks dsh, runs dsh plugin --profile web add github:cnyc6n/dsh-uia-agent,
and tells you to restart. No compile, no exe download: the plugin embeds the exe
as base64 and self-releases it (hash-verified) on first start.
One-command install (manual)
dsh plugin --profile web add github:cnyc6n/dsh-uia-agent
Restart dsh afterwards; the uia tool then enters the model tool set. The exe is
self-released by the plugin on startup - no manual build needed.
Permission tiers & escalation
Aligned with the dsh sandbox model (same sandbox_permissions + justification
ctx.approvalsurface as the pwsh tool):
| Tier | sandbox_permissions | commands |
|---|---|---|
| read-only | none (runs directly) | list / snapshot / snapshot_all / find / get_text / screenshot |
| workspace-write | workspace-write | minimize / maximize / restore / topmost / close |
| danger-full-access | danger-full-access | click / set_text / scroll / drag / swipe |
Higher-tier commands must pass sandbox_permissions + justification; they go
through user approval (approveEscalation) before execution. Missing or mismatched
permission returns an error guiding the model to retry with the correct tier.
uia tool parameters
command (enum of 16 actions), hwnd, depth, query (find JSON), text,
mode, x/y/x1/y1/x2/y2, duration, amount, direction, distance, out,
base64, off, plus escalation params sandbox_permissions / justification.
The model gets a short summary text; the structured raw result is persisted via
presentationMeta.
Tested environment
@deepseek-ai/dsh-tools0.1.5-rc.3 (host deps resolve via the$DSH_HOME/profiles/node_modulesfallback)- Node.js 24 (dsh requires 22+)
- Windows 10 x64 + MSVC 2022 (exe build)
Development / self-check
node smoke.mjs # no-LLM smoke: module load + tool def + apply
powershell -ExecutionPolicy Bypass -File scripts/install.ps1 # manual exe release
Known limits
- Self-drawn UI / games / DirectX / stock Qt expose no UIA tree (
snapshotreturns unsupported; fall back toscreenshot+ image recognition). - Elevated windows require the exe to run as administrator, else UIPI blocks.
- Chromium/Electron disable accessibility by default; the first access may be empty.
- UIA calls may hang: the exe has a built-in 5s timeout; tool spawn timeout is 15s.
- PrintWindow may return black for some DRM / self-drawn windows (
capture_failed).
Comments
Loading…
Similar plugins
by 1jiegejiayouxuewangan1
Windows desktop control for DeepSeek Harness (DSH) through UI Automation: read a window's control tree instead of screenshots, drive elements by stable id, approve every write, audit every action. | 让 AI 安全地操作 Windows 桌面软件
★ 0
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-desktop-uiaby xiaozs-com
DeepSeek Harness (dsh) host plugin bridging the local Screen Automation Helper desktop into the Agent tool system (30 tools).
★ 0
↓ 50/wk
TypeScript
Sep 20, 2026
dsh plugin --profile web add dsh-screen-automationby JeremyWangCY
Windows computer-use plugin for AI agents with reusable window targets, UI Automation, window-bound screenshots, background-first verified input, isolated Chromium automation, MCP, CLI, and installabl
★ 0
MIT
PowerShell
Sep 24, 2026
dsh plugin --profile web add win-pilotby Cheyeah
DeepSeek Harness (DSH) Web 插件:拖放文件预览 / Markdown 渲染 / 文件盒 / 智能桌面截图(全屏·区域·窗口)/ 外挂识图与识别文本入库。完整开发历史含 21 个快照标签。
★ 0
JavaScript
Aug 28, 2026
dsh plugin --profile web add dsh-drop-previewby ZSeven-W
DeepSeek Harness plugin for browser automation, headless first. Every agent gets its own throwaway Chrome/Edge/Chromium profile, short-lived semantic references instead of CSS selectors, scoped subtre
★ 0
MIT
JavaScript
Sep 24, 2026
dsh plugin --profile web add @zseven-w/dsh-browserWindows-native computer use for DeepSeek Harness: two tools drive and read any desktop app. One batch call runs find, click, type, key, read, wait and screenshot steps in a single engine pass, so a ta
★ 0
dsh plugin --profile web add dsh-win-computer-use