Introduction¶
In DSH, explaining interface issues to the model usually requires opening a separate screenshot tool, cropping the image, and then pasting or uploading it. System screenshots often lack annotations, and for long pages, users must manually stitch multiple images together. Below introduces the community plugin dsh-screenshot, which adds a Screenshot / Screenshot Question line in the editor’s + menu. From selection to WeChat-style annotations, inserting into the draft, copying, or saving, everything can be completed within the same workflow; it also supports stitching scrolling screenshots into long images.
What is it¶
dsh-screenshot is released by maintainer aaron999-h and belongs to the Client type plugin in the DSH community directory (current GitHub stars: 0). It registers a screenshot entry point in the DeepSeek Harness editor, relying on DSH Desktop Host on Windows to capture desktop pixels; selection and annotation are handled by editor.cs (distributed with the package) compiled and executed during capture. On non-Windows systems or when using only dsh web, the menu row will be hidden, and there are no global hotkeys.
Core Features¶
Editor Entry & Selection¶
- A Screenshot line is added at the end of the Commands group in the
+menu (plugins cannot occupy built-in Add group command names, consistent with README behavior). - Upon clicking, the entire desktop (multi-monitor virtual screen) freezes into a borderless top-level window, without hiding or minimizing other windows, and DSH itself remains visible.
- Click on window: The window under the cursor highlights with a green border, and the rest of the area is dimmed; left-click confirms the window, or drag a custom rectangle; while dragging, the area inside is bright, outside is dark, and
W × His displayed. - Right-click or Esc to cancel; no attachment is generated.
Annotation Toolbar¶
Annotations are made on the same frozen screen. The toolbar is a white background single line, right-aligned to the selection, roughly looking like: Rectangle Ellipse Line Arrow Brush Mosaic Text | Undo Redo | Copy Save As | ✕ Cancel ✓ Insert.
- Shapes: Rectangle, Ellipse, Line, Arrow (drag start is the arrow tail), Freehand Brush, Mosaic (drag area pixels), Text.
- When a shape tool is activated, a color/line width row appears; the Text tool has Small / Medium / Large font sizes.
- After drawing, objects can be selected: drag control points to resize, drag endpoints to change line segments, drag inside to move, Delete to remove; Ctrl+Z / Ctrl+Y for undo/redo.
- ✓ Insert: Synthesizes a PNG and writes it to the current draft via the same paste entry as a real Ctrl+V (subject to limits like upload and busy states); Copy to clipboard; Save As supports PNG/JPEG/BMP.
Scroll Screenshot¶
For pages taller than one screen (chat logs, long text, long documents):
- After defining the selection as usual, click the scroll screenshot button on the toolbar (Page+Down arrow, an independent group to the right of “Text”).
- A status bar appears outside the selection, showing the stitched pixel height; scroll inside the lower window (wheel, PgDn, etc.).
- When reaching the bottom, click the status bar Done / Finish or press Enter.
- The stitched result returns to the same annotation window (scaled to fit, background dimmed) and will not be automatically inserted; you can continue annotating, then choose to insert, copy, save, or cancel. In this view, the scroll button is disabled (greyed out), but other tools remain available; annotations map back to original image pixels to maintain export resolution.
Stitching Logic: Samples the selection every 320 ms. Adjacent frames estimate the vertical shift using Row SAD (Sum of Absolute Differences), only appending new bottom rows revealed; frames that haven’t moved or have sudden page changes are ignored. Height limit is 24000 px, max duration 180 seconds.
Global Hotkey Alt+A¶
Alt + A is equivalent to + → Screenshot and can also trigger when DSH is minimized or obscured (Host-side Win32 RegisterHotKey). The same combination also appears as the ctx.shortcuts command in Settings → Shortcuts, where the binding can be changed within the window. System-level registration is fixed to Alt+A; if it is occupied, it will fail and write to %TEMP%\dsh-screenshot.log (hotkey unavailable: register-failed ...), in which case only window shortcuts remain usable.
Implementation Details (for troubleshooting)¶
- Host:
POST /screenshot/v7/capture(requiresx-dsh-screenshot: 1and same-origin check),GET /screenshot/v7/status; PowerShell declares DPI for each monitor before capturing the virtual screen, compiles and runseditor.cs, and sends back base64 via a JSON file. - Client:
client.jsregisters the menu and failure retry overlay; prioritizesinputActions.addFiles, otherwise synthesizesClipboardEvent('paste'). - Logs:
%TEMP%\dsh-screenshot.log,%TEMP%\dsh-screenshot-editor.log. - Triggering again when a selection window is already open returns
409, prompting instead of stacking windows.
Installation & Enablement¶
Current package version 1.3.1, License MIT. Install:
dsh plugin install dsh-screenshot
You can also add "dsh-screenshot" to dsh.profile.bundles in your profile, which the loader will pull. Requires DSH Desktop on Windows.
Uninstall:
dsh plugin remove dsh-screenshot
Only adds a menu row, one overlay, and two Host routes; scroll mode reuses the same route (?mode=scroll).
Typical Usage¶
- Open DSH Desktop and enter the conversation editor where an image needs to be pasted.
- Click
+→ Screenshot, or press Alt+A (if system registration succeeded). - Click the window or drag a selection area; after annotating on the toolbar, click ✓ Insert, or Copy / Save As.
- Long page: Define selection → Scroll screenshot button → Scroll the underlying content → Done → Annotate again → ✓ Insert, etc.
Applicable Scenarios & Notes¶
Suitable for users using DSH on Windows who need to put desktop or window visuals directly into the conversation and are accustomed to WeChat-style annotations or scrolling long images.
- The plugin runs under current DSH process and Host permissions. Please check the GitHub source code and the MIT license yourself before installing.
- Browser builds
dsh webcannot complete capture and require the Desktop Host. - The community directory skillhub.cn is an independent ecosystem site with no official affiliation with DeepSeek / Hypersphere; stars and versions are based on real-time information from the repository and directory page.
Closing¶
dsh-screenshot brings selection, annotation, draft insertion, and scrolling long images into a single chain within the DSH editor, reducing the steps of switching out to screenshot tools and back. Directory page: https://www.skillhub.cn/plugins/aaron999-h/dsh-screenshot; Repository: https://github.com/aaron999-h/dsh-screenshot.