dsh-desktop-tools: Operating the Windows Desktop with UI Automation in DSH

Introduction

DeepSeek Harness (DSH) agents typically access files, terminals, or browsers via tool calls. However, when trying to inspect windows, read control structures, click, or type within local Windows applications, relying solely on a generic shell is often insufficient: either semantic control information is unavailable, or coordinates easily become stale. The community plugin dsh-desktop-tools (GitHub: Kerberos255/dsh-desktop-tools) addresses these scenarios by providing native Windows desktop automation capabilities within DSH. It prioritizes UI Automation (UIA) and falls back to scoped screenshot coordinates for interfaces that cannot expose semantic controls.

What is this

dsh-desktop-tools is published by the maintainer Kerberos255 and categorized as “Workflow” in the SkillHub community directory. The plugin description is: Windows desktop automation for DeepSeek Harness: UI Automation, screenshots, scoped actions and native permissions. The current version in package.json is 0.1.11, and the license is MIT.

The plugin runs exclusively on Windows, relying on PowerShell 7, a host matching DSH version requirements (engines requires node >= 24, dsh >= 0.2.0-rc.2), and the dependencies specified in the package.json referenced in the README. When UIA or keyboard interaction is required, operations must be performed on an unlocked interactive desktop.

Core Features

The capabilities listed in the README can be summarized into the following five points (corresponding to five tool directions):

  1. Window Discovery: Locate currently available desktop windows.
  2. Accessibility / Control Snapshot: Obtain control references for subsequent clicking and input.
  3. Screenshots: For custom-drawn interfaces that are difficult to semanticize via UIA, use screenshots and their screenshotRef to represent areas; coordinates are relative to the screenshot, not global full-screen coordinates.
  4. Click and Type: Call desktop_click and desktop_type while holding current references; a new snapshot is required after the interface changes.
  5. References and Permissions: Use session/window references and screenshot references to avoid reusing stale coordinates.

Other documented behaviors include:

  • Adherence to current DSH session permission presets, plugin write switches, per-process policies, and native approvals; read-only sessions cannot write.
  • Optional visible operation indicators; support for PowerShell-based helpers without the need for a persistent long-running service.
  • Automatic cleanup of eligible plugin-owned screenshots after the configured retention period (default seven days), without deleting audit logs or active session artifacts.
  • Optional reporting of restricted operation and failure metadata to dsh-plugin-diagnostics (excluding conversation content and credentials).

The dsh-browser-tools by the same author targets web pages; the division of labor for desktop and local GUI scenarios can be understood in conjunction with this plugin.

Installation and Activation

The official installation command is as follows (the profile name desktop should be replaced according to your local DSH configuration):

dsh plugin --profile desktop add github:Kerberos255/dsh-desktop-tools

You should restart DSH after installing or updating plugin code. For reproducible installations, the README suggests pinning to a specific commit.

Before enabling, it is recommended to open Settings → Plugins → Desktop Tools in DSH, review the allowed process policies, and keep writing disabled until absolutely necessary.

Typical Usage

The sequence provided in the README’s Quick Start can be directly reproduced:

  1. Open Settings → Plugins → Desktop Tools, review the allowed-process policy, and keep writing disabled until needed.
  2. Call desktop_windows to find windows, then call desktop_snapshot to obtain current control references.
  3. Use desktop_click or desktop_type with current references; refresh the snapshot after interface changes.
  4. For custom-drawn applications, use desktop_screenshot and its screenshotRef; coordinates are internal to that screenshot, not global screen coordinates.

See policy.json and config.example.json in the repository for policy and field examples; see SECURITY.md for security notes.

Permissions, Privacy, and Testing

Read-only sessions cannot write. DSH sessions with full access permissions may experience reduced repeated approvals for “allowed normal interactions,” but explicitly forbidden processes, secure desktops, credential windows, and sensitive submissions remain protected; disabling approval prompts does not equal granting permissions.

Credential fields are suppressed in supported snapshots/screenshots. Audit files and screenshots are stored only in the local runtime directory. The repository provides npm test for portable security/policy checks; real UIA, DPI, focus, keyboard, and screen marking tests must be completed on an unlocked Windows host and cannot be inferred solely from GitHub Actions.

Use Cases and Notes

Suitable for: Developers who need to perform read-only exploration or limited approved writing (checking windows, reading structures, locating via screenshots, clicking/input) in local Windows applications within DSH agent workflows.

Notes:

  • The plugin runs with the permissions and policies of the current DSH process; review the source code and MIT license yourself before installation, and understand the implications of policy.json, session presets, and native approvals.
  • Windows only; Linux / macOS hosts are not applicable.
  • The community directory page (SkillHub) and GitHub are independent sources of information and have no official affiliation with DeepSeek / Hithink RoyalFlush; star counts and versions are subject to the repository status at the time of your installation (GitHub stars were 0 at the time of data retrieval).

Conclusion

dsh-desktop-tools connects Windows UIA, scoped screenshots, and the DSH native permission model into a single set of tools, making it suitable for desktop automation steps that require “seeing the structure before acting, and keeping coordinates within the session.” For further information, please visit the community directory page and the GitHub repository:

  • Directory Page: https://www.skillhub.cn/plugins/Kerberos255/dsh-desktop-tools
  • GitHub: https://github.com/Kerberos255/dsh-desktop-tools
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye