dsh-cua - Windows Computer Use
v0.5.0Windows computer-use MCP server for dsh (DeepSeek Harness), client-neutral, 19 tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tool_list_windows
List all visible top-level windows with title, hwnd, PID, position and size, sorted largest first. Read-only — safe while the user works.
| Parameter | Type | Description |
|---|---|---|
filter_title | string |
tool_find_window
Find a window by title substring and return its hwnd and geometry. Read-only.
| Parameter | Type | Description |
|---|---|---|
title | string |
tool_capture_window
Capture a window screenshot and SAVE IT TO A FILE. Provide hwnd or title substring. Crops to the window's CLIENT area by default, so image pixel (0,0) is the same point click_at calls (0,0) — no frame offset to guess. Returns bounds = the screen rect (x,y,width,height) the image maps to, and per-axis `scale_x` and `scale_y`. Multiply image coordinates by the corresponding scale and then add the bounds origin to get screen coordinates. A DPI-virtualized target can have different image-pixel and screen-pixel dimensions even without resizing. Also reports dpi_verified; when false, image pixels…
| Parameter | Type | Description |
|---|---|---|
client_only | boolean | |
hwnd | integer | |
image_format | string | |
include_data_uri | boolean | |
max_dim | integer | |
quality | integer | |
save_path | string | |
title | string |
tool_send_keys
Send keyboard shortcut to a window. Example: keys=['ctrl','s']. Physical keys follow the active input method. A successful dispatch does not verify that text was committed. Use set_value for literal text when available. For Alt+key menu navigation, include 'alt' as first key (or set use_alt_key). MUTATING: serialized across agent sessions via the admission gate, and global hotkeys additionally YIELD TO THE USER — recent mouse/keyboard activity makes them wait, then refuse with reason user-active instead of interrupting; switch to element actions or retry later. Also refuses when the window i…
| Parameter | Type | Description |
|---|---|---|
hwnd | integer | |
keys | array | |
title | string | |
use_alt_key | boolean |
tool_click_at
Click at client-area coordinates within a window. Coordinates relative to window content area (0,0 = top-left). Tries the ELEMENT path first (resolve the point via UI Automation and invoke that element) because it needs no focus and does not care about z-order; falls back to a gated raw cursor click before dispatch when the hit is an image/document surface or cannot be invoked. A sent Invoke is never followed automatically by a raw click. Check effect_verified and observe the window when the effect is unconfirmed. The result's `method` says which was used: 'ax_press' or 'raw_event'. MUTATING:…
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | |
hwnd | integer | |
prefer | string | |
title | string | |
x | integer | |
y | integer |
tool_element_action
Perform an action on a UI element by the `ref` from element_at_point — this is the focus-free path: a UI Automation pattern is delivered to the element, so the window is never raised and z-order never matters. MUTATING (soft): serialized across agent sessions; NO physical input is injected, so it can run while the user types — just do not operate the very window the user is working in. `action` must be one of the actions listed for that element (press, set_value, select, toggle, expand, collapse, scroll_into_view, focus); `set_value` also needs `text`. Refuses with the supported list when…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
ref * | string | |
text |
tool_type_text
Post text to a window's text control without activating or restoring its window. MUTATING (soft): serialized across agent sessions. No physical input is injected. On PostMessage failure, stops at the first rejected character and returns how many were queued in typed. A partial post may already have edited the target. Inspect it before retrying. effect_verified reports whether readback confirmed the requested insertion. Some applications require their window to be active to process text.
| Parameter | Type | Description |
|---|---|---|
delay_ms | integer | |
hwnd | integer | |
text | string | |
title | string |
tool_get_window_rect
Get detailed position and size info for a window: absolute position, dimensions, and client area size. Read-only.
| Parameter | Type | Description |
|---|---|---|
hwnd | integer | |
title | string |
tool_element_at_point
Identify the UI element at a PHYSICAL screen point via Windows UI Automation. Returns its name, role, rect, and which actions it supports, plus an opaque `ref` for read_element. This is how you turn 'what I see in the screenshot' into something addressable without clicking: coordinates here are the same space as capture bounds (both physical pixels). Read-only — moves no cursor and changes no focus.
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
tool_read_element
Re-read a UI element by the `ref` returned from element_at_point. Use this to check whether an element is still there before acting on it; a ref goes stale when the UI is rebuilt, and that is reported rather than guessed. Read-only.
| Parameter | Type | Description |
|---|---|---|
ref * | string |
tool_skyshot
Read a window's accessibility tree as compact text. Each element line is '{index} {indent}{role} {name}{Value: ...}{(state)}'. After the first shot, the result is a diff by default: '~' shows changed or renumbered elements, '+' shows additions, and removed indices refer to the previous shot. Unchanged lines are omitted. For tool_element_action_at, pass the returned hwnd and shot_id plus an index printed on an element line in this response. Taking another shot of the same window invalidates that pair. Pass disable_diff=true to see the full tree and act on an omitted element. The shot_key identi…
| Parameter | Type | Description |
|---|---|---|
disable_diff | boolean | |
hwnd | integer | |
include_offscreen | boolean | |
include_values | boolean | |
max_depth | integer | |
max_nodes | integer | |
title | string |
tool_element_action_at
Act on an element printed by the latest skyshot of a window. Pass hwnd, shot_id and the element's printed index from the same tool_skyshot response. A missing or stale shot_id or an index omitted from the response is refused before acting. If refused, take a fresh full shot with disable_diff=true and use its shot_id and index. MUTATING (soft): serialized across agent sessions; no physical input injected. Actions: press, set_value, select, toggle, expand, collapse, scroll_into_view, focus. set_value also needs text.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
hwnd * | integer | |
index * | integer | |
shot_id | string | |
text |
tool_find_elements
Find UI elements by role and/or name substring and return refs that can be acted on with element_action. This is how you reach an element that cannot be hit-tested — the point of naming it is that you no longer need a pixel. `role` is the lowercase role from skyshot (button, edit, document, list_item, ...). At least one filter is required: an unfiltered call would be a tree dump, so use skyshot for that. The result reports `minimized` — a minimized window does not always expose its full tree, so a zero here is not proof that nothing matches. Read-only.
| Parameter | Type | Description |
|---|---|---|
automation_id | string | |
hwnd | integer | |
include_offscreen | boolean | |
max_results | integer | |
name_contains | string | |
role | string | |
title | string |
tool_coexistence_status
Report the coexistence policy in force: whether the admission gate is enabled, the quiet/max-wait/mutex-timeout tunables, the pre-injection final-check window, named-mutex health, and how long ago the last physical input happened. Read-only — call it when an action was refused with user-active or arbiter-busy and you want the numbers behind the refusal.
tool_clipboard_read
Read the current clipboard text. Read-only. Non-text clipboard content reports empty text rather than failing.
tool_clipboard_write
Replace the clipboard contents with text. MUTATING (soft): serialized across agent sessions — and it DESTROYS whatever the user last copied, so do not use it casually; announce it when you do.
| Parameter | Type | Description |
|---|---|---|
text | string |
tool_open_application
Open a file, folder, or URI with the shell's default handler — like double-clicking it in Explorer: an .exe path, a document, or a URL. MUTATING (soft): serialized across agent sessions; the launched app may take focus.
| Parameter | Type | Description |
|---|---|---|
target * | string |
tool_list_displays
List monitors: index (1-based), primary flag, device name, and the monitor plus work-area rectangles in physical pixels. Read-only.
tool_cursor_position
Current cursor position plus the screen size, both physical pixels. Read-only.