videndi/dsh-desktop-view ↗★ 0

dsh-desktop-view

Desktop observation and input tools for the DeepSeek Harness agent: DPI-aware screen capture, pointer position, monitor layout and window titles, plus move, click, drag, scroll, type, key and window control on Windows.

패키지
dsh-desktop-view
호환성
미검증
버전
0.2.0
라이선스
MIT
최근 업데이트
2026. 11. 13.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:videndi/dsh-desktop-view

使用

desktop_snapshot(monitor?: 1..N, max_width?: int, mark_cursor?: bool)
desktop_cursor()
desktop_move(x, y)
desktop_click(x?, y?, button?: left|right|middle, count?: 1..5)
desktop_drag(from_x, from_y, to_x, to_y, button?, duration_ms?)
desktop_scroll(delta, x?, y?, horizontal?)
desktop_type(text, interval_ms?)
desktop_key(keys)
desktop_window(operation?: list|focus|minimize|maximize|restore|close, title?, hwnd?)

一次"打开记事本写点东西"的真实调用序列:

desktop_window(operation: "list", title: "记事本")
  → 1. 0x000708C6 "无标题 - 记事本" — notepad (pid 3636), 2694x1344 at (76, 542), foreground

desktop_window(operation: "minimize", title: "记事本")
  → minimized · "无标题 - 记事本" (notepad, pid 3636)

desktop_window(operation: "restore", title: "记事本")
  → restored · "无标题 - 记事本" (notepad, pid 3636)

desktop_key(keys: "ctrl+a")
  → pressed ctrl+a · pointer (1637, 277)

desktop_type(text: "replaced by plugin")
  → typed 18 characters · pointer (1637, 277)

desktop_snapshot(max_width: 1100)
  → 文本信封 + image 内容块

desktop_snapshot 的文本部分长这样(窗口标题已脱敏):


captured: 2026-01-02T03:04:05+08:00
region: virtual-desktop — 4480x1440 at (-2560, 0)
image: C:\Users\me\.dsh\desktop-view\snapshots\desktop-20260102-030405-120.png (2240x720, downscaled from 4480x1440)
pointer: screen (100, 200) · image (50, 100) · monitor 1
monitors:
  - 1: 1920x1080 at (0, 0) primary
  - 2: 2560x1440 at (-2560, 0)
foreground: notepad (pid 42) "Untitled - Notepad"
under pointer: explorer (pid 7) "Program Manager"
display scale: 150%

模型路由支持图像输入时,同一条结果还会带一个 image 内容块(截图本身);不支持时只给路径,并附一行提示。