Preface¶
When collaborating with Agents in DeepSeek Harness (DSH), it is often necessary to show the model the on-screen interface, error messages, or window states. Relying solely on text descriptions tends to miss details; when inserting images into the conversation, you also want the files to land in the current session workspace for easy future reference. The community already offers various screenshot plugins, each with different focuses. Below is an introduction to dsh-screenshot-win, released by maintainer lsnnn123: designed for Windows, it provides a camera button in the chat input box and registers a screenshot tool callable by Agents. Both entry points utilize the same set of host logic.
What is this¶
dsh-screenshot-win is a standard DSH bundle plugin: it declares dsh.bundle.patch and dsh.client in its package.json. It can be enabled, disabled, or uninstalled via the plugin page, and can also be installed from GitHub via the plugin manager. It is categorized as a Client; the repository is https://github.com/lsnnn123/dsh-screenshot-win, licensed under MIT, and the current version is 0.1.0. Plugin directory page: https://www.skillhub.cn/plugins/lsnnn123/dsh-screenshot-win.
Core Features¶
The plugin is divided into two halves sharing the /dsh-screenshot-win/capture route and the same batch of PowerShell capture scripts; they are not two separate implementations.
GUI (Browser Half)
There is a camera icon in the toolbar to the left of the input box. Clicking it offers options to capture a selected region, the entire screen, or a specific window. The screenshot is inserted into the current session input box as an image attachment (ready to be sent directly), and the PNG is simultaneously saved to the session workspace.
Agent Tool (Host Half)
A tool named screenshot is registered, allowing the model to trigger screenshots autonomously; the image enters the conversation as a tool result (visible to the model), and the file is similarly saved to disk.
Window capture uses PrintWindow with PW_RENDERFULLCONTENT, allowing capture of obscured windows (including Electron windows); if GPU direct drawing fails in rare cases, it can fall back to screen copying (screen_fallback). The interface language follows DSH: it displays in Chinese when ctx.locale.active is zh*, and English otherwise.
Installation and Enablement¶
Installation via the plugin manager / plugin market is recommended. The installation command from the documentation is:
plugin_manager action=install_bundle target="github:lsnnn123/dsh-screenshot-win"
Once installed, a corresponding card appears on the DSH “Plugins” page: the toggle switch enables/disables it. Uninstalling via the details page will remove it from the profile’s dependencies. The plugin manager modifies the profile, so manual editing is not required.
If local profile installation policies or CLI restrictions prevent using the manager, the README describes manual bundle wiring (directory junctions, dependencies in package.json, and dsh.profile.bundles, etc.) using the same data structure as the plugin manager; general users should follow Method A. Changes to lib/index.js require an application restart; changes to client/client.js only require a page refresh.
Configuration¶
Configuration can be set in the profile or the plugin line of the user-level cordis.patch.yml (the bundle includes a cordis.patch.yml which inserts the plugin line; duplicate insertion from user-level and user bundles will cause double mounting, which must be avoided):
- insert:
- id: dsh-screenshot-win
name: dsh-screenshot-win
config:
saveDir: screenshots # Relative to session workspace
maxWidth: 1600 # Scale down proportionally if exceeded (0 means no scaling)
format: png # png | jpeg
quality: 88 # jpeg quality
timeoutMs: 300000 # Timeout for single capture script
regionTimeoutSec: 180 # Auto-cancel time for region selection overlay
tool: true # Whether to register the screenshot tool
routes: true # Whether to mount HTTP routes for the browser half
Typical Usage¶
Manual Screenshot
Click the camera in the conversation input box, select region selection, full screen, or specific window as prompted, and send or continue editing the message after confirmation.
Agent calling screenshot
Common parameters are as follows (see the repository README for the full table):
| Parameter | Description |
|---|---|
mode |
region (default) / screen / window |
out |
Output path; defaults to <workspace>/screenshots/shot-<timestamp>.png |
hwnd / window / process / active |
Specify window |
list_windows |
Only list capturable windows (to facilitate model target selection) |
The region selection mode requires manual dragging by a human; in purely automated environments, you can observe the cancellation path by combining it with timeout parameters.
Running self-check for host status (port from documentation example):
Invoke-WebRequest http://127.0.0.1:19387/dsh-screenshot-win/status
Returns the version, default save directory, and browser-half registration status.
Use Cases and Notes¶
- Suitable for: Developers or daily users on Windows using DSH who need to quickly put screen content into conversations and retain a copy in the workspace.
- Environment: Windows only (GDI /
PrintWindow, PowerShell 7);package.jsonrequires Node^22.19.0 || >=24.0.0, andosiswin32. - Security: The plugin runs with the current DSH process privileges and can capture screens, write to the workspace, and execute capture scripts. You should read the source code and the MIT license before installation to ensure it complies with your environment policies.
- Ecosystem: DSH adopts the “everything is a plugin” philosophy; the community featured directory is independent of DeepSeek / Hithink RoyalFlush. Market listings come from community-maintained directories like awesome-dsh-plugin, and are not an official app store.
Conclusion¶
dsh-screenshot-win connects the input box camera and the screenshot tool to the same set of Windows capture pipelines, supporting region selection, full screen, and specified windows, with screenshots entering the conversation and written to the workspace. Details and source code: https://www.skillhub.cn/plugins/lsnnn123/dsh-screenshot-win, https://github.com/lsnnn123/dsh-screenshot-win.