dsh-cua
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Windows desktop automation over UI Automation. Observe before you act: tool_skyshot reads a window as a compact, diffable text tree (orders of magnitude cheaper than a screenshot), and tool_find_elements / tool_element_at_point name controls inside it. Prefer element actions (tool_element_action, tool_element_action_at): they deliver UIA patterns, so they never steal focus and do not care about z-order. Reach for tool_click_at or tool_send_keys only when no element path exists - those inject real physical input, are hard-gated, and yield to the human. Every action returns a receipt: action_sent means the call was accepted, effect_verified means the effect happened. They are different things, and action_sent=true is never a claim that it worked. If a call comes back user-active, a person is at the keyboard: do not retry in a loop - wait, or switch to the element path. The 12 read-only tools are safe to call at any time.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tool_list_windowsA | List all visible top-level windows with title, hwnd, PID, position and size, sorted largest first. Read-only — safe while the user works. |
| tool_find_windowA | Find a window by title substring and return its hwnd and geometry. Read-only. |
| tool_capture_windowA | 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 |
| tool_send_keysA | 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 is not the foreground window, because injected keys would go to the wrong window. |
| tool_click_atA | 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 |
| tool_element_actionA | Perform an action on a UI element by the |
| tool_type_textA | 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. |
| tool_get_window_rectC | Get detailed position and size info for a window: absolute position, dimensions, and client area size. Read-only. |
| tool_element_at_pointA | 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 |
| tool_read_elementA | Re-read a UI element by the |
| tool_skyshotA | 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 identifies the window, while shot_id identifies this observation. Pass include_offscreen=true to include scrolled-out or hidden elements. A minimized window may expose only part of its tree; restore the window and read again if needed. Element values can contain window content. Read-only: no input injection or focus change. |
| tool_element_action_atA | 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. |
| tool_find_elementsA | 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. |
| tool_coexistence_statusA | 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_readA | Read the current clipboard text. Read-only. Non-text clipboard content reports empty text rather than failing. |
| tool_clipboard_writeA | 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. |
| tool_open_applicationA | 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. |
| tool_list_displaysA | List monitors: index (1-based), primary flag, device name, and the monitor plus work-area rectangles in physical pixels. Read-only. |
| tool_cursor_positionA | Current cursor position plus the screen size, both physical pixels. Read-only. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Three different tools can press a button — tool_click_at (which silently falls back to an ax_press path), tool_element_action (by ref), and tool_element_action_at (by skyshot index) — and the last two have near-identical names with subtly different addressing schemes. The very detailed descriptions do explain the distinctions, and the window/display/clipboard tools are cleanly separated, but an agent must read carefully to pick the right action path.
All 19 tools share a consistent `tool_` prefix and are overwhelmingly snake_case verb_noun (capture_window, send_keys, click_at, find_elements, list_displays). Minor deviations exist: clipboard_read/clipboard_write invert to noun_verb, and skyshot, cursor_position, coexistence_status are noun-only with no verb.
19 tools is on the heavy side but each maps to a real capability of a desktop-automation server (capture, input, element addressing, window enumeration, clipboard, displays). The only redundancy is the three overlapping element-activation paths, which could be collapsed to two.
Core read/act loop is covered, but there is no mouse-wheel/scroll tool, no drag, no right-click or double-click, and no window lifecycle control (move, resize, minimize, close, focus). For a computer-use server these are common operations an agent will hit as dead ends, forcing workarounds via send_keys or element scroll_into_view.