Preface¶
When handling desktop-related tasks in DeepSeek Harness (DSH), the common practice is for users to manually describe the interface, copy window titles, or take screenshots and paste them into the session. The agent lacks structured perception of the real desktop and struggles to click by coordinates, switch foreground windows, or execute hotkeys. If you want the Host side to directly provide “list windows, take screenshots,” and optional keyboard/mouse control, and allow toggling “action” off with one click in settings, the community plugin Desktop Control (repo name dsh-bundle-screen-view, maintained by OraSkyC) is a viable path for Windows client scenarios. It registers 7 tools: 2 are read-only, 5 actually operate the desktop, and includes multi-layer safety gates and optional pre-action confirmation.
What is this¶
Desktop Control is a DSH bundle plugin: it exposes Windows desktop capabilities to the agent via the Host’s tools service—screen capture, listing top-level windows, and driving real mouse and keyboard when user authorization and configuration permit. The plugin was formerly known as “Screen View”; the current name emphasizes that besides “seeing,” it includes input-class tools.
- Directory Page: SkillHub Plugin Page
- Source Code & Docs: GitHub — OraSkyC/dsh-bundle-screen-view
- Category: Client (
win32only) - Current Package Version (
package.json):1.4.0 - License: MIT
The DSH community directory (such as SkillHub) is an independent ecosystem site with no official affiliation with DeepSeek / High-Flyer; it is recommended to read the source code and license yourself before installing the plugin.
Core Functions: Seven Tools¶
The tools fall into two categories. An agent granted input-class tools, when permissions allow and gates are open, can theoretically complete UI operations similar to your local user (clicking, typing, alt+f4, etc.). Please understand the table below before installing.
Read-only (No cursor movement, no key presses)¶
| Tool | Function |
|---|---|
window_list |
Lists visible top-level windows, prioritizing the foreground; returns hwnd, title, and screen rectangle. |
screenshot |
Captures the main screen or a specified window, returning a visible image and text summary. Optional window (title substring, case-insensitive), maxWidth (default 2560, scales down proportionally if exceeded). |
Operates the Desktop (Use with Caution)¶
| Tool | Function |
|---|---|
window_activate |
Brings a window to the foreground (restores if minimized); commonly used before type_text / key to ensure input lands on the target window. |
mouse_click |
Moves cursor to virtual screen coordinates (x, y) and clicks; button is left / right / middle, clicks is 1–3. |
type_text |
Types Unicode text into the currently focused window (can include newlines). |
key |
Single key or combination keys, such as enter, ctrl+a, alt+f4, f5, etc. |
scroll |
Scrolls at the mouse position; can provide x,y to move the cursor first; deltaY where 120 is approximately one notch, positive is up. |
The descriptions for the four input-class tools remind users: they should only be used when the user requests UI operations, and priority should be given to targeting a single window.
Screenshot Implementation and Usage Notes¶
The implementation prioritizes Screen DC + BitBlt for window screenshots (cropping the window rectangle from the DWM-composited screen DC); falls back to PrintWindow if necessary. Therefore, window screenshots are “the visible pixels at that rectangle location”—if obscured by other windows, the capture may contain the occluding content. A typical sequence is window_activate followed by screenshot.
Installation and Activation¶
Requirements: Windows; DSH is a web profile or any profile with the Host tools service; Node >= 22.19.0; no npm build step. The plugin hard-depends on the Host’s tools, attachments, and webServer services.
- In DSH, open Settings → Plugins → Add Plugin and fill in the repository address; or install via command line (the profile depends on your environment, the README example uses
desktop):
dsh plugin --profile desktop add https://github.com/OraSkyC/dsh-bundle-screen-view
- Restart DSH after installation is complete.
Settings and Safety Gates¶
Modifying user-layer configuration in Settings → Plugins → Desktop Control takes effect immediately without restart; turning off the input group removes the 5 input-class tools from the current session.
Configuration has two layers (priority from low to high):
| Layer | Location | Effect |
|---|---|---|
| Deployment Default | cordis.patch.yml in the package |
Requires DSH restart after change |
| User Override | %USERPROFILE%\.dsh\state\dsh-bundle-screen-view\settings.json |
Immediate effect (sparse storage, only saves keys you changed) |
Safety-Related Keys (Excerpt)¶
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch; if off, no tools are registered. |
allowCapture |
true |
Whether to register window_list, screenshot (read-only, but sends screen content to the model). |
allowInput |
true |
Whether to register the five input tools; set to false if you only want to “look”. |
confirmInput |
false |
Whether to pop up a window to seek consent before input operations (see next section). Default off: executes directly if permissions allow. |
Behavior-Related Keys (Excerpt)¶
| Key | Default | Description |
|---|---|---|
captureMaxWidth |
2560 |
Default max width for screenshots (320–8192). |
imageCacheSize |
64 |
Number of screenshot references to cache (4–512). |
excludeWindowTitles |
[] |
Comma-separated title substrings; matching windows will not appear in window_list and cannot be screenshotted or operated. |
No pop-up by default: When confirmInput is not enabled, as long as the tool is registered and the DSH permission preset allows it, the agent calling mouse_click, etc., will not seek consent first. To reduce risk, you can combine: turn off allowInput, tighten permission presets, turn on confirmInput, or disable/uninstall the plugin after use.
Seek Consent Before Action (confirmInput)¶
Available since version 1.3.0 as an optional gate. When confirmInput is turned on, the five input tools will prompt via ctx.userQuestions for every call with three choices: Allow this operation, Allow all operations this session, Do not allow. The pop-up displays specific operation details (e.g., character count and truncated text for type_text, coordinates for mouse_click, etc.). If explicit consent is not obtained, it refuses to execute; sub-agents must inherit the “Allow this session” authorization from the main session, otherwise they will be refused.
Related timeout configuration: confirmTimeoutSeconds defaults to 300 (0 means no timeout); confirmAllowOnTimeout defaults to false (timeout is treated as disagreement). Explicitly setting to true will let a single call pass when there is no answer; the panel will warn with a red background and count the number of “Passed due to timeout” occurrences.
Read-only tools screenshot and window_list are not covered by this gate.
Typical Usage Logic¶
The README does not provide fixed “one-click script” examples, but tool parameter combinations can reproduce common workflows:
- Call
window_list, find the target window’shwndor title substring based on the title. - When operation or a clean screenshot is needed, perform
window_activateon the specified window first. - Use
screenshotto observe the interface (setwindowormaxWidthif necessary); sensitive windows can be excluded viaexcludeWindowTitles. - Only when the user explicitly requests UI changes, use
mouse_click,type_text,key,scrollto complete clicking, typing, and scrolling.
Switching to foreground before input and switching to foreground before screenshotting are usage habits explicitly mentioned in the documentation.
How to Reduce Risk (Five Layers)¶
- Seek Consent Before Action (
confirmInput, off by default). - Plugin Gate: Turn off
allowInputto keep only “looking”. - DSH Permission Presets (e.g.,
read-only/workspace-write/danger-full-access). - No Install, No Existence: If the plugin is not loaded, these tools do not exist.
- Prompt Constraints: Tool descriptions require the model to only operate the UI when the user requests it.
The plugin runs with the Windows user permissions of the current DSH process; do not open input tools under untrusted prompts or web-driven instructions.
Conclusion¶
Desktop Control splits the “seeing” and “moving” of the Windows desktop into a configurable set of Host tools. It is suitable for developers who need window localization, screenshot assistance, and controlled UI automation within DSH; the platform is limited to Windows, and the security default leans towards “smooth execution.” If you need to be conservative, please turn off input, turn on confirmation, or tighten permissions.
- Directory Page: https://www.skillhub.cn/plugins/OraSkyC/dsh-bundle-screen-view
- GitHub: https://github.com/OraSkyC/dsh-bundle-screen-view