Preface¶
When collaborating with agents in the DSH Desktop version, the common bottleneck is not the model’s capability, but rather inaccurate problem descriptions: misplaced buttons, abnormal animations, or interface changes after toggling switches often require several back-and-forth text rounds to clarify. The community plugin dsh-screen-capture-record-desktop (maintainer Link-h1j) addresses this scenario: it adds “Screen Record” and “Screenshot” buttons to the input box toolbar. The outputs are sent via DSH’s existing attachment channels—just add a brief explanation to send, allowing the model to receive first-hand visuals rather than relayed descriptions.
Below is the plugin’s positioning, capabilities, and installation usage. Facts are based on the GitHub Repository README. The DSH ecosystem advocates “Everything is a plugin”; the SkillHub directory page is a community collection and has no official affiliation with DeepSeek / High-Flyer.
What is this¶
dsh-screen-capture-record-desktop is a client-side bundle for the DSH Desktop version: it mounts host-side screen capture/recording routes via cordis.patch.yml and injects UI into the browser side, inserting two buttons—Screen Record and Screenshot—to the left of the “Dictation / Start Recording” button. The design goal is singular: reduce rework caused by inaccurate descriptions in human-computer communication.
The current package version is 0.5.0, license MIT, requires Node >=20.
Core Features¶
Two Buttons on the Toolbar¶
| Button | Operation Summary | Output |
|---|---|---|
| Screen Record | Select source first, then start; click again or Esc to end; auto-ends when max duration is reached |
A single .webm (VP8), automatically added to input box attachments |
| Screenshot | Capture full screen, then select region in overlay; annotate after release, “Use this” adds to attachment | JPEG (with optional annotations), automatically added to input box attachments |
Screen recording produces one video file; whether to extract frames and how densely to extract them is handled by the agent in the session as needed. Screenshots support region selection and provide annotations such as pen, rectangle, arrow, and text within the same overlay.
Screen Record: Selecting Recording Source¶
Clicking “Screen Record” first pops up “Choose what to record” rather than starting immediately:
- Entire screen (all monitors): Records the virtual desktop together.
- Monitor N: A single monitor.
- Window: Follows window movement and resizing; records pixels of that window area on the screen, and other windows overlapping on top will be included.
- Custom area…: Record after dragging a box to confirm.
Options have thumbnails; the last selection is preselected. Recording starts upon selection. To avoid the popup every time, set localStorage['dsh-capture.askSource'] = '0' in DevTools to directly use the last source (defaults to entire screen if no record).
During recording, the button displays a timer; Send linkage: Clicking “Send” during recording or pressing Enter in the input box is equivalent to stopping recording, attaching the file, and sending (Shift/Alt+Enter remains for newline). This can be disabled via localStorage['dsh-screen-capture.sendStopsRec'] = '0'. If the video fails to attach, the send is canceled and the disk path is prompted.
Screenshot: Selection and Annotation in the Same Overlay¶
After clicking “Screenshot,” the full screen is displayed at approximately 92%×80% scale. Dragging to select a region and release immediately enters annotation mode (default is pen); clicking selects the full screen. The toolbar supports undo, reselect region, seven colors, and three line widths. Pressing Enter or clicking “Use this” confirms and adds to attachment; Esc, right-click, or clicking the blank mask area cancels.
To disable the selection overlay or annotation: set localStorage['dsh-capture.picker'] = '0' and localStorage['dsh-capture.annotate'] = '0' respectively (see configuration table below).
For the Agent: Evidence First Read, Then Look¶
The README emphasizes: screenshots/recordings are evidence for the model to see. The Agent should first use tools in the repository to parse attachments, then use read_image etc. to read them into context before answering. Example:
node tools/extract-frames.mjs <recording.webm>
node tools/extract-frames.mjs <screenshot.jpg>
Screen recording defaults to approximately one frame every 3 seconds, deduplication, max 12 frames; parameters like --json, --fps, --max, --width can be added. See the repository’s AGENTS.md for misjudgment points (e.g., plugin notification bar at the beginning of recording, recording source text on the notification bar, screenshot annotations representing user focus points).
Installation and Activation¶
Install from Registry (Recommended):
dsh plugin add dsh-screen-capture-record-desktop
After installation, a full restart of DSH is mandatory (host screen capture/recording routes are mounted at process startup; simply refreshing the interface is ineffective).
Local Development / Install without Publishing:
dsh plugin --profile desktop add link:<absolute path to plugin directory>
link: links the package directory to the profile; changes to lib/ require a full restart to take effect. Do not duplicate mount the same plugin id via registry installation and manual modification of cordis.patch.yml; perform enable, disable, and uninstall operations in the DSH “Plugins” page.
Prerequisites and Paths¶
| Capability | Requirement |
|---|---|
| Platform | Windows (Host uses PowerShell + GDI for screen capture) |
| Screenshot | PowerShell 5.1+ |
| Screen Record | Python 3 + Pillow (pip install Pillow), ffmpeg (must include image2pipe, mjpeg, libvpx_vp8, webm) |
The ffmpeg bundled with Playwright usually meets the requirements of the recording component. The host can read environment variables DSH_CAPTURE_PYTHON, DSH_CAPTURE_FFMPEG, DSH_CAPTURE_POWERSHELL at startup; if not set, it searches according to the auto-detection order in the README. A full restart of DSH is required after modification. Screenshots remain available if Python/ffmpeg is missing, but screen recording will error.
Outputs default to <DSH_HOME>\dsh-screen-capture (DSH_HOME defaults to %USERPROFILE%\.dsh), which can be overridden with DSH_CAPTURE_DIR.
Typical Usage¶
- Install the plugin and fully restart the DSH Desktop version.
- Click Screenshot or Screen Record to the left of “Dictation” on the input box toolbar.
- Screenshot: Drag to select the problem area → annotate if necessary → “Use this” → write a sentence of context in the input box → Send.
- Screen Record: Select Desktop/Monitor/Window/Area → reproduce the issue → end recording (or send directly during recording) → attachment becomes
.webmthen send. - If you maintain an agent workflow, use
extract-frames.mjsin the session as per the README to process video before reading images for analysis.
Client behavior can be adjusted in DevTools (takes effect on next operation, no restart needed), for example:
localStorage['dsh-capture.fps'] = '5'
localStorage['dsh-capture.maxSeconds'] = '180'
localStorage['dsh-capture.quality'] = '0.72'
localStorage['dsh-capture.maxDimension'] = '1280'
See the “Configuration” section of the README for the meaning and default values of dsh-capture.fps (1–15), dsh-capture.maxSeconds (5–900), dsh-capture.maxDimension (640–2560), dsh-capture.quality (0.3–0.95).
Use Cases and Notes¶
Suitable for: Developers using DSH Desktop on Windows who need to submit UI defects, interaction flows, or layout issues to agents; scenarios where long text descriptions need to be replaced by video or annotated screenshots.
Notes:
- The plugin runs with the current DSH process permissions; please review the source code and MIT license before installation to assess environment and compliance requirements.
- Windows only; Linux / macOS users cannot rely on this plugin’s host screen capture solution.
- When recording windows, occlusion by other windows will record the occluding content, which is a limitation of the host screen capture mechanism.
- Metadata such as star counts on the community directory page may change; features and commands are subject to the GitHub README.
Links¶
- Directory Page: https://www.skillhub.cn/plugins/Link-h1j/dsh-screen-capture-record-desktop
- Source Code & Documentation: https://github.com/Link-h1j/dsh-screen-capture-record-desktop
Through the steps above, you can use two buttons in the Desktop version’s input box to turn “hard-to-describe” interface issues into .webm and JPEG evidence that the model can directly consume, shortening the collaboration cost caused by description and misunderstanding.