About Dsh Computer Use Win
Dsh Computer Use Win is an MCP server published by Yu-tao-Li in the Automation category: deepSeek Harness的Windows电脑操控插件 / Windows computer use for DeepSeek Harness. Conduid read 25 tools from its source: windows_computer_use_accessibility_tree, windows_computer_use_activate_window, windows_computer_use_batch, windows_computer_use_click, windows_computer_use_close_window, windows_computer_use_double_click and 19 more. It is published to npm as dsh-computer-use-win and starts with npx.
The repository has 989 stars and 28 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.6.5 (29 Nov 2026): 0.6.5 处理五个反馈:桌面操控和浏览器操控可以分开开关,也能只管当前对话;“虚拟机”新增 Windows 沙盒;远程 Windows 更容易配置;可以在本机识别没有文字的图标按钮(实验);高缩放下后台截图不再偏位。设置页也重新排了版,工具加载默认改回“全部”。… It follows v0.6.4 (25 Nov 2026), and the 5 most recent releases go back to v0.6.1 (18 Nov 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include computer-use, desktop-automation, dsh-plugin, uia and windows.
Install
claude mcp add dsh-computer-use-win -- npx -y dsh-computer-use-winnpx -y dsh-computer-use-wingit clone https://github.com/Yu-tao-Li/dsh-computer-use-winTools (25)
windows_computer_use_accessibility_treeRead the UI Automation tree without taking a screenshot.| Parameter | Type | Description |
|---|---|---|
| maxDepth | integer | Levels below the root. In window-scoped trees, unnamed browser layout panes (Chromium: Electron, Chrome/Edge, CEF, WebView2; Gecko: Firefox and its forks) do not count, so page content stays within the default depth. UIA tree and snapshot results report countedDepth (depth used for maxDepth) and structuralDepth (actual levels) before output reductions. To check whether something changed, use find on that control or wait_for rather than reading the whole tree again. |
| maxNodes | integer | |
| scope | string | |
| treeDeltaBase | string | Tree delta for re-reading one window. 'start' returns the tree plus a treeId; that treeId on a later read of the same window, with the same view and detail, returns only the controls added, removed and changed (delta) and a new treeId, or the whole tree with delta.fallback saying why. Not related to observationToken. |
windows_computer_use_activate_windowBring a top-level window to the foreground by title substring, process id, or native HWND. A minimized window is restored first; the result then says restored:true, and window describes the window after the call. If Windows leaves it minimized, activated is false and a warning says so. This tool always activates its target; the shared activate flag cannot suppress it. With browserTab, bring that tab to the front of its browser window.windows_computer_use_batchRun 1–20 already-planned actions on one explicit window or browserTab, in order, then observe once. Each action retains its normal validation, enabled-tool checks, stop and input guards. Stops before the next action on error, uncertain dispatch, navigation, a dialog or new window; such a change after the last action completes the plan and is reported as afterLastStep. Do not batch a decision that depends on unseen output. Never send scripts; steps are action names and their usual arguments. Alternatively use testCase for saved workflows (固定工作流): list/show local Markdown cases, save a completed flow without repeating its actions (verifies the final expectation), or run one by name on a fresh explicit target. Save steps by exact name/controlType, ending in expect. Native expectText explicitly uses OCR. Supply set_value parameters only at run time.| Parameter | Type | Description |
|---|---|---|
| steps | array | |
| testCase | any | |
| timeoutMs | integer |
windows_computer_use_clickClick a screen coordinate or the center of a UI Automation element. dispatch:'auto' (default) = a left click on an element runs in the background (BM_CLICK on a Win32 button, else its UIA Invoke/Toggle pattern); a coordinate click is real SendInput input: the target comes forward for it, a point that shows another window is refused (POINT_COVERED), then the pointer and the foreground go back; dispatch:'background' = PostMessage into the target window's queue (no foreground steal, delivery unverified — Chromium/Electron/UWP may drop it, then retry with foreground); dispatch:'foreground' = always foreground SendInput. With an explicit observationToken, desktop coordinates compensate for movement since that observation; without it they are current screen coordinates. With browserTab, x/y are CSS pixels in the current page screenshot viewport. A page element id (t1a2b:57) is clicked inside the page itself, in the background; a covered element is refused and the covering element is named.| Parameter | Type | Description |
|---|---|---|
| button | string | |
| dispatch | string | |
| elementId | string | |
| x | integer | |
| y | integer |
windows_computer_use_close_windowClose a window gracefully by posting WM_CLOSE (the app can veto with a save dialog). Safer than killing the process; use close_window instead of alt+f4 when the app may have unsaved state you want to handle. The shared activate flag is ignored: WM_CLOSE is posted in the background and needs no foreground switch. With browserTab, close that tab; the page may still ask to confirm leaving.windows_computer_use_double_clickDouble click a screen coordinate or the center of a UI Automation element. Supports the same dispatch modes as click (background posts a real WM_LBUTTONDBLCLK). With browserTab, x/y are CSS viewport pixels; page element ids are double-clicked inside the page.| Parameter | Type | Description |
|---|---|---|
| button | string | |
| dispatch | string | |
| elementId | string | |
| x | integer | |
| y | integer |
windows_computer_use_dragDrag through a path of screen coordinates. With browserTab, the path is in CSS pixels of the current page screenshot viewport and input stays inside the page.| Parameter | Type | Description |
|---|---|---|
| button | string | |
| path * | array |
windows_computer_use_element_infoReturn UI Automation information for an element id or a screen point. A browser-lane page element id (t1a2b:57) returns its tag, text, value, link and page box.| Parameter | Type | Description |
|---|---|---|
| elementId | string | |
| x | integer | |
| y | integer |
windows_computer_use_findFind UIA elements by name, automation id, class, value or type. When UIA is sparse or incomplete and no match is found, read visible text with OCR if ocrFallback is enabled and controlType is unset. OCR cannot verify UIA control types. OCR candidates have SCREEN coordinates and source:'ocr', not UIA element ids. If the literal query misses, inspect ocr.lines and reformulate using the visible text (a search box may say '大家都在搜'). With browserTab, search that page's accessibility outline instead and return page element ids.| Parameter | Type | Description |
|---|---|---|
| controlType | string | |
| maxDepth | integer | Levels below the root. In window-scoped trees, unnamed browser layout panes (Chromium: Electron, Chrome/Edge, CEF, WebView2; Gecko: Firefox and its forks) do not count, so page content stays within the default depth. UIA tree and snapshot results report countedDepth (depth used for maxDepth) and structuralDepth (actual levels) before output reductions. To check whether something changed, use find on that control or wait_for rather than reading the whole tree again. |
| maxNodes | integer | |
| maxResults | integer | |
| ocrFallback | boolean | Use OCR after an empty sparse/incomplete UIA search without controlType. Disable for UIA-only diagnostics. No input is sent. |
| query * | string | |
| scope | string |
windows_computer_use_focusSet keyboard focus to a UI Automation element, or to a browser-lane page element inside its page.| Parameter | Type | Description |
|---|---|---|
| elementId * | string |
windows_computer_use_healthCheck that the Windows UI Automation backend, screenshot capture, and input stack are available.windows_computer_use_invokeInvoke a UI Automation element in the background: BM_CLICK on a Win32 button, else its Invoke, Toggle, SelectionItem, or ExpandCollapse pattern, with click fallback. action expands, collapses or scrolls the element into view instead. A browser-lane page element id is clicked inside the page.| Parameter | Type | Description |
|---|---|---|
| action | string | default = the first of Invoke, Toggle, SelectionItem, ExpandCollapse the element has. expand/collapse = ExpandCollapse only; an element already in that state is left as is. scroll_into_view = ScrollItem: its container scrolls until the element shows, with no pointer. UI Automation elements only. |
| elementId * | string | |
| fallbackClick | boolean |
windows_computer_use_keypressPress a key or key chord, such as Ctrl+L, Enter, Alt+F4, or Shift+Tab. The Windows key is blocked by design. The keys go to the target window, else the window DSH last worked in this turn, else the window in front; it comes forward for them and then gives the foreground back, unless a menu or dialog they opened is showing. The result's deliveredTo names the window and its focused control that received the keys. dispatch:'background' supports only a single printable character (posted as WM_CHAR to the focused control of the target window, no foreground steal); chords and functional keys must use dispatch:'foreground' (SendInput). With browserTab, the key goes to that page inside the browser: Alt+Left/Alt+Right/F5 go back/forward/reload, Enter/Escape answer an open JavaScript dialog, and browser-window shortcuts such as Ctrl+L or Ctrl+T are refused.| Parameter | Type | Description |
|---|---|---|
| dispatch | string | |
| intervalMs | integer | Pause between ordered chords for application menus to update. |
| keys * | array | |
| thenKeys | array | Desktop foreground only: chords sent after keys while retaining the same foreground lease, e.g. keys:["alt","h"], thenKeys:[["o"],["w"]] opens Excel Column Width. |
windows_computer_use_launch_appLaunch an executable, shortcut or installed application, on the user's desktop through the interactive Windows Shell or on DSH's hidden desktop (see desktop). The app outlives the tool call and MCP server and uses the desktop's environment. Requires Explorer. Argument-bearing and shortcut launches require approval or explicit standalone configuration. Known command interpreters and script hosts are refused with arguments; this is not a command sandbox. A successful result means dispatched; verify the intended window. Apps may activate themselves even with activate:false. Does not request elevation.| Parameter | Type | Description |
|---|---|---|
| activate | boolean | |
| arguments | string | Windows command-line arguments for the executable or shortcut; quote individual arguments containing spaces. Not a shell command, and refused for command interpreters and script hosts. |
| desktop | string | Where the app opens. background: DSH's hidden desktop in this Windows session, apart from the user's screen, pointer and keyboard; its windows take UI Automation and window-message actions only, and list_windows marks them desktop:'background'. current: the user's desktop, needed for real pointer or keyboard input, shortcuts and installed or Store apps. Default: background under the Low disruption work mode when the target is an executable, else current. |
| target * | string | Absolute .exe/.com/.lnk path, executable name on PATH/App Paths, exact installed app name or AppUserModelID. |
| waitMs | integer | |
| workingDirectory | string | Existing absolute working directory. Not supported for AppUserModelID launches. |
windows_computer_use_list_windowsList top-level windows visible to Windows UI Automation. Minimized windows are listed too, marked minimized:true; activate_window restores them. The result field browserLane (not an argument) lists the tabs of connected Chromium browsers with ids for browserTab, and explains how to open a background tab (set_value elementId new-tab).| Parameter | Type | Description |
|---|---|---|
| includeInvisible | boolean | Also list hidden windows (not shown at all, such as tray and helper windows). Minimized windows are listed either way. |
| maxWindows | integer |
windows_computer_use_moveMove to a screen coordinate or element. With browserTab, x/y are CSS pixels in the current page screenshot viewport; page element ids hover inside the page. Browser operations do not move the desktop pointer.| Parameter | Type | Description |
|---|---|---|
| elementId | string | |
| x | integer | |
| y | integer |
windows_computer_use_move_windowMove (not resize) a window to screen coordinates without activating it. Useful for arranging windows, and it also refreshes the homing cache for coordinate-based actions.| Parameter | Type | Description |
|---|---|---|
| x * | integer | |
| y * | integer |
windows_computer_use_ocrRead visible text with Windows.Media.Ocr, independent of UIA by default. Returns text, lines and word boxes in SCREEN coordinates. With query, only the lines with a match come back (lineCount counts all lines); without a match, every line's text and box but no word boxes. Best effort: small or faint text can still be misread and there is no confidence score, so prefer UIA names and values when the app exposes them. query is literal text matching, not semantic recognition; inspect lines if 'search' misses a placeholder. Click matched.word.x/y using foreground dispatch, then type_text with focusMode:'preserve'. Optional resolveControl performs a potentially blocking UIA hit-test; its control may be the whole page rather than the text input.| Parameter | Type | Description |
|---|---|---|
| includeScreenshot | boolean | |
| language | string | Installed OCR language to read with, e.g. zh-Hans, en-US or ja; a prefix picks the matching installed one. Default: the Windows user languages. An unknown language fails and lists the installed ones. |
| maxWidth | integer | Shrink the capture to at most this width before reading; 0 reads it at full size. Small text is enlarged automatically (ocrScale in the result). |
| query | string | Optional literal text query, case-insensitive and ignoring whitespace. Returns up to 3 matched word runs with screen boundingBox and center in word.x/y, and the matching lines instead of the whole text. control is null unless resolveControl:true opts into a UIA hit-test. Supports character-segmented CJK text. |
| region | any | |
| resolveControl | boolean | |
| scope | string |
windows_computer_use_screenshotCapture a window or desktop without querying UIA. Returns an image plus bounds and imageScale for mapping image pixels to SCREEN coordinates: screen = bounds origin + image / imageScale. Use when the accessibility provider is unavailable, or to locate icons visually. Capture does not prove an action succeeded; inspect the resulting state. A minimized window shows only its title strip; the result then says minimized:true with a warning (activate_window restores it). With browserTab, capture that tab's viewport inside the browser, also in the background; its pixels are page pixels, not screen coordinates.| Parameter | Type | Description |
|---|---|---|
| maxWidth | integer | |
| scope | string |
windows_computer_use_scrollScroll at a screen coordinate or an element. An element scrolls in the background first (WM_VSCROLL on a Win32 scroll bar, else the UIA ScrollPattern of the element or of its nearest scrolling ancestor) and reports scrollPercent before/after; otherwise the wheel is real input at the point, with the foreground and pointer given back. Positive deltaY scrolls down; 120 is one wheel notch. With browserTab (the page) or a browser-lane page element id, scroll inside the page in the background.| Parameter | Type | Description |
|---|---|---|
| deltaX | integer | |
| deltaY | integer | |
| elementId | string | |
| x | integer | |
| y | integer |
windows_computer_use_set_valueSet a value in the background (EM_REPLACESEL on a Win32 edit, else the UI Automation ValuePattern), or focus and type as fallback. Whether the keyboard focus moves to the element depends on the app (Chromium moves it, a Win32 edit keeps it where it was): when a key must follow in that field, such as Enter in a search box, call focus on the element first. Browser lane: a page element id fills that field, selects that option or sets that checkbox inside the page; <tab>:address (for example t1a2b:address) navigates the tab to a web address; new-tab opens the address in a background tab, in a separate DSH browser without sign-ins or, when the user turned on sign-ins, in their own browser; <browser>:new-tab opens it in that connected browser.| Parameter | Type | Description |
|---|---|---|
| elementId * | string | |
| fallbackType | boolean | |
| restoreClipboard | boolean | |
| value * | string |
windows_computer_use_snapshotCapture a screenshot and a UI Automation tree for the active window or desktop.| Parameter | Type | Description |
|---|---|---|
| captureWindow | boolean | Capture only the target (or active) window. Defaults to true with an explicit window target; otherwise captures the virtual screen. An unobstructed foreground window uses a checked screen crop; other windows use PrintWindow, then a screen fallback flagged occludedPossible. |
| includeScreenshot | boolean | |
| maxDepth | integer | Levels below the root. In window-scoped trees, unnamed browser layout panes (Chromium: Electron, Chrome/Edge, CEF, WebView2; Gecko: Firefox and its forks) do not count, so page content stays within the default depth. UIA tree and snapshot results report countedDepth (depth used for maxDepth) and structuralDepth (actual levels) before output reductions. To check whether something changed, use find on that control or wait_for rather than reading the whole tree again. |
| maxNodes | integer | |
| maxWidth | integer | Downscale the screenshot so its width is at most this many pixels (0 = native resolution). The response then carries imageScale + origin so image pixels can be mapped back to screen coordinates. |
| scope | string |
windows_computer_use_type_textType text into the focused control of the target (or active) window. method:'auto' (default) = a focused Win32 edit takes the text in the background (EM_REPLACESEL at the caret: no clipboard, keyboard or foreground; text with line breaks is pasted instead); any other control gets a clipboard paste with the window borrowed for it (reliable for CJK; the clipboard is restored and the paste kept out of clipboard history); method:'clipboard' always pastes; method:'sendinput' sends Unicode key events without the clipboard and checks readable plain Win32 edits before returning the foreground. An unavailable readback returns verification:'unconfirmed'; inspect the field before retrying any unconfirmed write. method:'background' posts WM_CHAR to the control with the keyboard focus in the target window — no clipboard, no foreground steal; checked on Win32 edits, unverified elsewhere, refused when nothing in the window has the focus. Other methods may include verifyValue (the control's value after typing, truncated to 200 chars). With browserTab, insert the text at that page's focused field inside the browser: no clipboard, pointer or foreground change.| Parameter | Type | Description |
|---|---|---|
| focusMode | string | preserve keeps the focus established by a previous click, essential for OCR/visual targets. main explicitly tries to focus the window's largest Edit/Document control. |
| method | string | |
| restoreClipboard | boolean | |
| text * | string |
windows_computer_use_waitWait for a short period before observing the UI again.| Parameter | Type | Description |
|---|---|---|
| milliseconds | integer |
windows_computer_use_wait_forWait for a window, a UIA element, or literal visible OCR text to appear/disappear. condition:'window' uses native window enumeration; 'element' uses a bounded UIA query; 'text' uses OCR without UIA. Returns verification:'observed' only when the condition was observed; truncated UIA absence is inconclusive. Text is literal, so use the actual expected text, not an inferred semantic label. With browserTab, element/text conditions poll that page's accessibility outline.| Parameter | Type | Description |
|---|---|---|
| appear | boolean | |
| condition | string | |
| controlType | string | |
| intervalMs | integer | |
| maxDepth | integer | Levels below the root. In window-scoped trees, unnamed browser layout panes (Chromium: Electron, Chrome/Edge, CEF, WebView2; Gecko: Firefox and its forks) do not count, so page content stays within the default depth. UIA tree and snapshot results report countedDepth (depth used for maxDepth) and structuralDepth (actual levels) before output reductions. To check whether something changed, use find on that control or wait_for rather than reading the whole tree again. |
| maxNodes | integer | |
| query | string | |
| scope | string | |
| timeoutMs | integer | |
| treeTimeoutMs | integer |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 11K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 35 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 22 callsassets/diagrams/render.mjs:26, assets/market/render.mjs:25, mcp/background-desktop.mjs:19
- Outbound network calls
- 6 callsclient/src/main.js:548, client/src/main.js:1778, mcp/browser.mjs:1049
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 35 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 11K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README