dsh-screenshot: Insert Screenshot into DeepSeek Harness Draft

Introduction

When explaining interface issues to the model in DeepSeek Harness, text is often not intuitive enough: window layouts, error pop-ups, and details in design mockups are better suited for direct images. The common approach is to take a system screenshot and drag it into the input box, or copy and paste it into a temporary directory. These steps are scattered and it is easy to miss the areas that need to be explained.

dsh-screenshot is a client-side plugin for the Harness input box (Composer): it adds a camera button to the toolbar, supports three modes: selection, window, and full-screen. The captured PNG is directly added to the current draft attachments and sent to the model with the message. Below is an introduction to its positioning, capabilities, installation methods, and points to note during use.

What is this

dsh-screenshot (npm package name @joythatway/dsh-screenshot, current version 0.4.2) is maintained by joythatway and is licensed under MIT. It is a profile bundle plugin for Harness, providing native screenshot capabilities on the desktop Host side and injecting the Composer toolbar UI on the browser side, integrating with the draft attachment workflow of DeepSeek Harness.

Categorically, it is a client-side plugin: operations like screenshotting, permission pre-checking, and window enumeration are executed locally using the current DSH host process permissions; the page retrieves images via a same-origin HTTP interface. See the community directory at skillhub.cn/plugins/joythatway/dsh-screenshot and source code at GitHub.

Core Features

One Button, Three Modes

Click the camera icon in the input box toolbar to open a menu with options:

  • Selection Screenshot: System-native overlay for dragging to select an area; on macOS, the Harness window is automatically moved aside before the screenshot, and restored after completion; after releasing, a confirmation box appears (Press Enter to confirm, or Esc or click the background to cancel).
  • Window Screenshot: Lists currently visible windows on the screen (foreground first), displaying a real-time thumbnail on the right when hovering; windows that are too small are filtered; for windows that appear as solid colors due to GPU rendering, empty image detection is performed, prompting the user to switch to the foreground if necessary.
  • Full-Screen Screenshot: Captures the entire desktop; shortcut key is ⌃⇧S (macOS) or Ctrl+Shift+S (Windows).

If there are 2 or more images in the draft, clicking a thumbnail opens a gallery: use arrow keys or ← / → to navigate pages, the bottom thumbnail bar allows jumping to specific images, and Esc closes the gallery.

Platform Support

Platform Selection Window (List) Full-Screen Status
macOS Native Overlay CoreGraphics + Hover Thumbnail Native Screenshot Tested
Windows — Win32 enumeration + Rectangle screenshot .NET Full-Screen Code written, not tested
Linux — — — Not supported (button hidden)

Windows lacks a system-level selection overlay; the menu only has “Window / Full-Screen”; the modes returned by /probe drives the UI to hide unsupported items.

Permissions and Privacy (Excerpt)

  • Screen Recording: Required for screenshots; prompts and offers “Open Settings” if missing; uses CGPreflightScreenCaptureAccess() for pre-check, which only asks for permission without capturing pixels.
  • Accessibility: Automatically hides the Harness window during selection; screenshots are still usable if missing, but the window won’t move aside.

Screenshot PNGs are stored only in the host process memory by default; they are deleted immediately after being retrieved by the page, and automatically released if not retrieved within 60 seconds. Images with a long side exceeding 2560px are compressed proportionally before being added to the draft. After clicking send, attachments are persisted locally by Harness according to existing rules, independent of the plugin’s memory strategy.

Installation and Enablement

Environment requirements: DeepSeek Harness Desktop version (buttons work in the browser, full-screen shortcut is only bound to the desktop); macOS 12+ for full capabilities; development/testing requires Node.js ≥ 20.

Please review the repository source code and the MIT license yourself before installing; the plugin runs with the current DSH process permissions and involves screen recording and accessibility features, so it should be installed in a trusted environment.

Method 1: Install local directory via Plugin Manager

plugin_manager install_bundle /绝对路径/dsh-screenshot

Method 2: Manually place in profile

Copy the directory to $DSH_PROFILE_DIR/node_modules/ and insert into the profile’s cordis.patch.yml:

- insert:
    - id: dsh-screenshot
      name: '@joythatway/dsh-screenshot'

Restart Harness (or reload the plugin) after installation; the browser side takes effect after refreshing the page.

Typical Usage

  1. Confirm platform capabilities: During development and debugging, access the same-origin GET /api/dsh-screenshot/probe to check supported, platform, and modes.
  2. Click the camera icon in the chat input box and select Selection / Window / Full-Screen according to the scenario (this capability is unavailable on Linux).
  3. After confirming the area in selection mode, the image appears in the draft attachment area; edit the text and send it.
  4. For quick full-screen screenshots, use ⌃⇧S or Ctrl+Shift+S (depending on the platform) on the desktop.

On first use, if the system denies screen recording, open system settings to authorize it as prompted; if the window needs to move aside during selection, you must grant Accessibility permissions on macOS and restart Harness if necessary.

Applicable Scenarios and Notes

Suitable for workflows in Harness that require “screenshot as draft,” such as debugging UI, comparing with design mockups, or showing the model multi-window context. Not suitable for scenarios expecting to use the same capabilities on the Linux desktop: the current implementation hides the button.

Known limitations (from README): relies on Harness extension points such as the conversation.input.left slot, createDrafts / releaseDraftAttachment, and shortcuts.register. It is recommended to test all three modes after upgrading Harness; the shortcut key is fixed to ⌃⇧S with no settings interface; Windows paths have not been verified on real devices.

The DSH ecosystem advocates “everything is a plugin”; the plugin directory on skillhub.cn is a community site and has no official affiliation with DeepSeek / Quanta. Please evaluate the source code and security boundaries yourself when choosing third-party plugins.

Conclusion

dsh-screenshot converges selection, window, and full-screen into a single pipeline within the Composer toolbar, reducing the back-and-forth switching between screenshots and pasting; it has the most complete capabilities on macOS, focuses on Window and Full-Screen on Windows, and is temporarily not supported on Linux.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye