dsh-cua
dsh-cua is a Windows computer-use MCP server (19 tools) that drives windows and UI elements via UI Automation and screenshots, with an arbiter that serializes multiple agents and yields to the human when physical input is needed.
Window & display discovery — list/find windows, get window rects and client areas, list monitors and work areas, read cursor position.
Observe UI cheaply —
tool_skyshotreads a window as a compact, diffable text tree (index/role/name/value);tool_find_elementslocates elements by role/name/automation-id.Element-level addressing —
tool_element_at_pointhit-tests a screen point to a UIA element;tool_read_elementre-checks a ref for staleness.Screenshots —
tool_capture_windowsaves a DPI-aware, client-area-cropped image (JPEG/PNG) with screen-mapping bounds and scale, without base64 by default.Focus-free element actions (soft gate) —
tool_element_action/tool_element_action_atpress, set_value, select, toggle, expand, collapse, scroll_into_view, or focus a UIA element without stealing focus or caring about z-order.Non-physical typing & clipboard —
tool_type_textposts text into a window;tool_clipboard_read/tool_clipboard_write(write destroys the user's clipboard).Launching —
tool_open_applicationopens a file, folder, or URI with the shell's default handler.Physical input (hard gate) —
tool_click_at(element path first, raw cursor click as fallback,dry_runsupported) andtool_send_keys(global hotkeys, requires the target to be foreground); both serialize across agents and yield to the human.Coexistence control —
tool_coexistence_statusreports gate settings, mutex health, and time since last human input.Cross-platform behavior — imports and answers
tools/liston Linux/macOS; actual calls return a clear "requires Windows" error.Not supported — no grounding of its own (needs a vision model for pixel paths), no record-and-replay, no isolation sandbox.
dsh-cua
English · 中文
An MCP server + agent skill for computer use on Windows: accessibility element actions come first and screenshots are only the fallback. It ships a cross-session arbiter — when several agents share one machine it serializes them, and it yields while you are actually using the computer yourself.
This repository contains only the MCP server and the skill. It stays neutral toward any stdio MCP client (dsh / Claude Code / Codex / Cursor / Cline / ZCode …) — nothing here requires dsh.
Platform semantics (0.3.1 and later): the tools only work on Windows — they drive
user32/kernel32 and UI Automation. But the package also imports elsewhere and the server
starts there, answering tools/list as usual, so any client or directory crawler can
enumerate all 19 tools with their full schemas; actually calling a tool returns a clear
"requires Windows" error rather than the process failing to start at all. In 0.3.0 the import
itself raised, which made such crawlers unable to see the server at all
(tests/linux-handshake.py is the regression test for this property, and CI runs it on
ubuntu-latest).
What it is
A stdio MCP server exposing 19 tools. Every tool name is prefixed tool_, exactly as
tools/list returns it.
Observe (read-only, callable at any time):
tool_skyshot(reads a window as a compact, diffable text tree — three orders of magnitude smaller than a screenshot),tool_element_at_point,tool_read_element,tool_find_elements,tool_capture_window(DPI-aware, cropped to the client area),tool_list_windows/tool_find_window/tool_get_window_rect,tool_list_displays,tool_cursor_position,tool_clipboard_read,tool_coexistence_statusElement actions (soft gate: serialized across agents, no physical input injected):
tool_element_action/tool_element_action_at— press / set_value / select / toggle / expand / collapse / scroll_into_view / focus, delivered straight to the UIA element, so they never steal focus and never care about z-orderOther mutating calls (soft gate too: the mutex, but no human-contention yield):
tool_type_text(targeted PostMessage witheffect_verified),tool_clipboard_write,tool_open_application. They synthesize no physical input, so they do not wait for you to stop working — and a clipboard write still destroys whatever you last copied, so announce it when you do.Physical input (hard gate: serialized across agents and yields to the human): exactly two things share your one cursor and one keyboard —
tool_click_at's raw_event path andtool_send_keys' global hotkeys. The gate waits for the machine to go input-quiet, then refuses withuser-activerather than fight you for the cursor.tool_click_attries its element path first (ax_press), which injects no physical input and therefore takes the mutex only; the receipt'smethodfield says which path actually ran. Coordinate hits on image or document surfaces go to the raw path because an Invoke on the surface does not address the chosen pixel. A sent Invoke with an unconfirmed effect returnseffect_verified: null. Re-observe before retrying. Before a raw click presses the mouse button, it verifies that the cursor move succeeded, the cursor reached the requested point, and that point still belongs to the target window. If any check fails, it returnssuccess: falseandaction_sent: falsewithout sending a mouse-button event.
"Read-only" here means it takes no mutating action and synthesizes no input, so it is safe to
call while someone is using the machine. Two of them have a side effect worth knowing:
tool_capture_window writes the screenshot to disk (save_path; a temp file when omitted), and
tool_skyshot updates the server-side diff baseline it diffs the next shot against.
A small tree is not proof of an empty window. tool_skyshot and tool_find_elements report
minimized, because a minimized window may be showing "nothing is displayed" rather than "nothing
is there" — and how much it hides depends on the application, which is why the receipt reports the
state instead of guessing at the cause. Measured here: an Edge window minimized before anything read
it exposes its browser chrome and no page at all (and include_offscreen does not recover it),
Explorer falls from 40 elements to 8 whenever it is minimized, and Notepad is unaffected. Restore the
window once and read it again if the result matters.
Every action returns a receipt rather than a self-reported success: action_sent /
effect_verified / foreground_changed / user-active / arbiter-busy. "The call was
accepted" and "the effect happened" are two different things, and the tool separates them for
the agent.
For tool_element_action_at, use the hwnd, shot_id, and an element index from the same
tool_skyshot response. A newer observation of that window invalidates the previous shot_id.
Diffs show renumbered elements with ~. For an element omitted from a diff, take a full shot
with disable_diff=true and use the index and shot_id it returns.
Related MCP server: openowl
How it differs
There are already several mature open-source Windows implementations. dsh-cua's differences are concentrated on one thing: sharing a machine with a human.
dsh-cua | ||||
Element actions delivered as UIA patterns (no focus steal, z-order irrelevant) | ✅ | ✅ (ax mode) | ❌ reads via UIA, acts by coordinate click | via cua-driver |
Recent human input → refuse | ✅ | ❌ | ❌ | ❌ |
Cross-agent serialization (multi-process) | ✅ named mutex | ❌ | ❌ | ❌ |
Per-action effect assertion | ✅ three-state | reports a delivery tier | ❌ | ❌ |
Foreground-steal side effect measured | ✅ | ❌ | ❌ | ❌ |
Tool count | 19 | 59 | 15 | 6 |
The key distinction is two things that are routinely conflated:
"No focus steal" is a mechanism guarantee — either a UIA pattern or a targeted
PostMessage, so the cursor and keyboard focus are physically never touched. cua-driver has it (ax mode). ahk-mcp does not, and the distinction is narrower than "no UIA": it reads through UIA (ahk_uia_tree/ahk_uia_find/ahk_uia_url), but it has no UIA pattern action — per its README it acts with coordinate clicks or synthetic keys, so an action does move the real cursor."Yield the moment you move" is a timing guarantee — it reads the age of the human's last input via
GetLastInputInfo, waits when it sees you using the machine, and on timeout refuses (user-active) instead of barging in. As of 2026-09-25 a pattern search across the other three codebases in that table found no equivalent — that is search evidence, not proof, and it covers input-age detection only: cua-driver does have human-facing guards of a different kind (a consent requirement, and foreground-steal detection with restore).
effect_verified reports the result of readback. true means the requested state or transition
was observed, false means the result did not satisfy the request, and null means the effect
is unconfirmed. For set_value, readback checks the requested value, including an empty string.
For a known foreground target with a different initial state, UIA actions with an explicit
target state can return as soon as readback matches. Other cases retain the 250 ms observation
window. foreground_observation_ms gives the time between the action returning and the
foreground sample, so foreground_changed describes the foreground at that point.
What dsh-cua does not do (stated up front to avoid misunderstanding): no grounding of its
own — the server does not analyse pixels, so a text-only model cannot drive interfaces that
a tree cannot express (canvas, games, remote desktop). With a vision-capable model the pixel
path is supported end to end: capture_window returns the image together with a verified
image→screen mapping (bounds, scale_x, scale_y, dpi_verified), and the model supplies the
grounding. When dpi_verified is true, multiply image coordinates by scale_x and scale_y,
then add bounds.x and bounds.y to get screen coordinates. A DPI-virtualized target can need
non-unit scale factors even without resizing. For click_at, subtract client_origin_on_screen
from the results to get client-relative coordinates.
Also not provided: record-and-replay, and an isolation sandbox. There are better-suited tools
for those.
FAQ
Why not run the agent on a second desktop or a virtual display, so it never touches mine?
Because Windows has nothing to build that on, and the mobile design that does work rests on
exactly the missing piece. On Android an app can create a VirtualDisplay and address input at
it — an input event carries a display id, so the agent's taps are routed to its own screen and
the human's touchscreen never notices. Windows routes input per desktop, not per display: a
desktop has one input queue and one cursor position.
That makes the obvious analogues dead ends:
Idea | Why it does not isolate |
Add a virtual monitor (an indirect display driver) | Another canvas, not another cursor — the pointer still has a single position across all monitors |
A Windows virtual desktop ( | A view switch inside the same session: same input queue, same cursor |
A second session (RDP, or another user) | Isolation is real, but client Windows allows one interactive session per user at a time — connecting remotely locks the console, so the human loses their screen, which was the whole point |
A hidden Win32 desktop ( | The agent would get its own input queue and cursor, but its windows are invisible, so it can only drive instances it launched — not the program you are looking at. (Inferred from the window-station/desktop model; not measured here.) |
That table is about input, and it is worth being exact about what a second display does
buy, because the answer is not "nothing". Measured on Edge with an isolated profile
(tests/verify-visible-vs-foreground.py): Chromium builds a page's accessibility tree for a
window that is merely shown. A window minimized before any query reported no page; the
same window reported a named page as soon as it was shown — while not the active window
(GetGUIThreadInfo(hwndActive) false) and fully covered (0% of its area on top). Every state
was read back from the OS rather than assumed, and a ForegroundWatch around each walk (1.4-2.7M
samples, foreground unchanged) shows the read takes no focus at all. A browser window parked on a
second display is therefore readable with skyshot while your focus never leaves your screen.
Input does not survive the move. A WM_CHAR posted to that same window is accepted by
PostMessage and changes nothing — covered or uncovered — while the identical post to the same
window when it is active inserts the character. So a second display buys the read and not
the act, and the surfaces that need acting on (Chromium internals, canvas, games) are exactly
the ones needing the activation it cannot provide. The constraint is input, and for input there
is still one cursor and one foreground window per desktop.
One qualification, because "my browser is on a second display and works fine" is a true report of
a different path. All of the above is about OS-level injection, and it does not generalise to
the browser's own protocol. Measured on the same machine, with a headed Edge window driven over CDP
(Input.dispatchMouseEvent, which is what Playwright's page.mouse.click sends): the click arrived
as a trusted event, the system cursor did not move by a single pixel (GetCursorPos identical
before and after), the foreground window did not change, and a further click still landed after
the window had been minimized (IsIconic true, foreground on another window). CDP injects into
the browser's own input pipeline, above the OS input queue, so the one-cursor/one-foreground rule
does not reach it at all — and neither does it reach anything else addressed through an
application's own API instead of through the screen. (The page's document.visibilityState still
read visible while minimized; that part is an artefact of the flags Playwright launches Chromium
with, not general Chromium behaviour. Delivering the click is a protocol property, independent of it.)
What decides the outcome is which layer the input enters at:
Route | Cursor / foreground needed | Crosses a display or occlusion boundary |
An application's own protocol (CDP, Playwright, a DOM/JS event, an app API) | no — nothing OS-level is injected | yes, and the window need not even be visible |
| no — but the window must exist and expose an element | yes |
| measured on Chromium: yes — the target must be active for the text to appear | no |
Physical injection ( | yes — one cursor and one foreground window for the whole desktop | no |
So for a page, "put the browser on the virtual display" is a good answer, and this project does not compete with it: a page is already its own addressable, scriptable surface. dsh-cua is for the targets that have no such surface — Explorer, native dialogs, Office, canvas and games, applications with no scripting API — where OS input is the only route there is, and that route is exactly the one a second display does not help. Both statements are true.
So the conflict is not a gap in this implementation, it is an OS constraint: Windows has no second cursor. Given that, yielding is the only correct response — and most calls never get near the problem, because they inject no input at all:
element_action/element_action_at— a UIA pattern is delivered to the element: no physical input, no cursor movement, no focus change. These are the paths that "can run while the user types".type_textresolves the text control and posts messages without activating or restoring the target window. It stops at the first rejected message and returns the count accepted intyped. If only a prefix was posted, inspect the control before retrying.effect_verifiedreflects whether readback confirmed the requested insertion. One measured limit, on Chromium: aWM_CHARposted to a Chromium window that is not the active window is accepted byPostMessageand changes nothing, while the identical post to the same window when it is active inserts the character (tests/verify-visible-vs-foreground.py). So on a background browser window, expect the text not to appear. If readback is unavailable, the receipt reportseffect_verified: null(unconfirmed) even when all messages were accepted. Not measured: which control the resolver picks inside a live page (Chromium's render widget is not anEDIT-class control, so the landing point may fall back to the window itself). The receipt'sresolved_by/target_hwndtell you which it was — that is the cheap way to settle it against your own target.Every read-only tool (
skyshot,element_at_point,capture_window, …) — touches nothing.
Exactly two paths inject physical input, and they exist because canvas-, game- and
Chromium-internal surfaces expose no element to address: the raw-event path of tool_click_at,
and the global hotkeys of tool_send_keys. Those two are what the arbiter guards.
Install
You need Windows x64 + an interactive desktop session + Python ≥3.10 to actually drive a
desktop. (The package installs and starts on Linux/macOS too, tools/list answers normally,
and a tool call then reports "requires Windows" — see "platform semantics" above.)
# Option 1: uvx, zero install (recommended)
uvx --from dsh-cua dsh-cua-server # runs the stdio MCP server directly
# Option 2: pip
pip install dsh-cua
# Option 3: from source
pip install git+https://github.com/Hutusion/dsh-cua.gitHowever you install it, start the server with python -m dsh_cua:
python -m dsh_cua # depends on no executable being on PATHWhy the
uvxline spells the script out. The package ships two console scripts,dsh-cua-serveranddsh-cua, and both start this same server. The explicit form (--from dsh-cua dsh-cua-server) is the one used above because it works on every published release: the short name was added in 0.4.1, so against 0.4.0uvx dsh-cuastill fails with "An executable nameddsh-cuais not provided by packagedsh-cua". Underuvxyou name the script explicitly; uvx runs it out of its own ephemeral environment, soPATHdoes not enter into it.Under
pipthe same script is the poorer choice, for an unrelated reason: pip installs console scripts into the interpreter'sScriptsdirectory, and that directory is not necessarily on PATH — measured on a stock python.org 3.12 install, neither the User nor the Machine PATH contained it, sopip install dsh-cuasucceeded whiledsh-cua-serverreported command not found.python -m dsh_cuaneeds no PATH entry at all. The console script is still shipped and works when PATH does contain it.Options 1 and 2 both work today: the package is published on PyPI (https://pypi.org/project/dsh-cua/). If
uvx/pipever 404s, use option 3 — it always works.
Wiring it up
Any MCP client; name the server win32 (the skill's tool-name convention is
mcp__win32__*).
python -m (no PATH dependency, recommended):
{ "mcpServers": { "win32": { "command": "python", "args": ["-m", "dsh_cua"] } } }uvx:
{ "mcpServers": { "win32": { "command": "uvx", "args": ["--from", "dsh-cua", "dsh-cua-server"] } } }More shapes are in examples/: Claude Code / generic clients / a dsh
cordis.patch.yml fragment / the route modality declaration you need if you want the model to
read screenshots (tr-route-settings.yml).
Skill (optional but strongly recommended)
skill/computer-use/SKILL.md is the companion doctrine for using
these tools: the observe → locate → act → verify loop, receipt semantics, retry safety, and the
discipline of coexisting with a human. The model can use the tools without it, but with it the
model picks the right path by itself — the measured difference is large.
The skill lives in this repository, not in the package — uvx and pip do not put a skill/
directory on your disk, so the cp below only works from a checkout. Without one, fetch the file:
mkdir -p ~/.dsh/skills/computer-use
curl -fsSL https://raw.githubusercontent.com/Hutusion/dsh-cua/main/skill/computer-use/SKILL.md \
-o ~/.dsh/skills/computer-use/SKILL.md # use ~/.agents/skills/ for Claude CodeFrom a clone, copy the directory instead:
# Claude Code / generic agents
cp -r skill/computer-use ~/.agents/skills/
# dsh
cp -r skill/computer-use ~/.dsh/skills/Security model
Tier | Operations | Gate |
Read-only | the 12 observe tools | no gate, callable at any time |
Soft | element actions, PostMessage typing, clipboard write, launching applications | cross-agent mutex (named mutex, multi-process, automatic serialization) |
Hard | raw clicks, global hotkeys | mutex + |
Honest boundaries: yielding is a cooperation protocol, not a hard guarantee (the tight check
150 ms before injection narrows the window as much as possible); a few applications
self-activate even on set_value (the receipt reports foreground_changed truthfully); and
two operators on the same window has no technical solution — do not drive the same window the
agent is driving.
Tests
python tests/verify-coexistence.py # 25 checks: zero-input proof / cross-process mutex / synthetic human contention / kill switch
python tests/verify-p0-fixes.py # the three P0s fixed in 0.2.0: each fails before the fixThe tests need no human cooperation — "user input" is synthesized with one real 1-pixel cursor move, and the cursor is restored afterwards.
The tests need a real interactive desktop session (some checks create windows and address
them through UIA), so they cannot run on a GitHub-hosted runner. What CI does cover is the
part that needs no desktop: packaging and installation, module import, regressions for the diff
index and tree-line escaping, and the arbiter's decision logic — see
.github/workflows/ci.yml.
python tests/ci-desktop-free.py # the local equivalent of the above, no desktop neededLicense
MIT
Available Tools
19 toolstool_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 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 and input coordinates cannot be safely paired. Defaults to JPEG q80 — a 1080p shot is ~6-10x smaller than PNG, which is what keeps a long session's request body under the provider's 32 MiB cap. The bytes are NOT inlined as base64 by default (that costs ~12,500 tokens per shot as text); read the saved_path with read_image instead, which attaches the same picture for ~50 tokens. Pass include_data_uri=true only when a caller genuinely cannot read a file. Read-only — no input injection, no focus change.
Inputs: hwnd, title, max_dim, quality, +4 more. Returns: object
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 method says which was used: 'ax_press' or 'raw_event'. MUTATING: serialized across agent sessions; the raw_event path ALSO YIELDS TO THE USER (waits for input-quiet, then refuses with user-active rather than fighting them for the cursor); the ax_press path injects no physical input. The raw path verifies the addressed window actually owns that screen point and returns success=false instead of clicking another window. Pass dry_run=true to check where the click would land without moving the cursor, clicking, or taking any gate.
Inputs: x, y, hwnd, title, +2 more. Returns: object
tool_clipboard_readA
Read the current clipboard text. Read-only. Non-text clipboard content reports empty text rather than failing.
Inputs: no named parameters. Returns: object
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.
Inputs: text. Returns: object
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.
Inputs: no named parameters. Returns: object
tool_cursor_positionA
Current cursor position plus the screen size, both physical pixels. Read-only.
Inputs: no named parameters. Returns: object
tool_element_actionA
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 the element does not offer the action.
Inputs: ref (required), action (required), text. Returns: object
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.
Inputs: hwnd (required), index (required), action (required), text, +1 more. Returns: object
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 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.
Inputs: x (required), y (required). Returns: object
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. 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.
Inputs: hwnd, role, title, max_results, +3 more. Returns: object
tool_find_windowA
Find a window by title substring and return its hwnd and geometry. Read-only.
Inputs: title. Returns: object
tool_get_window_rectC
Get detailed position and size info for a window: absolute position, dimensions, and client area size. Read-only.
Inputs: hwnd, title. Returns: object
tool_list_displaysA
List monitors: index (1-based), primary flag, device name, and the monitor plus work-area rectangles in physical pixels. Read-only.
Inputs: no named parameters. Returns: object
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.
Inputs: filter_title. Returns: object
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.
Inputs: target (required). Returns: object
tool_read_elementA
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.
Inputs: ref (required). Returns: object
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.
Inputs: hwnd, keys, title, use_alt_key. Returns: object
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.
Inputs: hwnd, title, max_depth, max_nodes, +3 more. Returns: object
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.
Inputs: hwnd, text, title, delay_ms. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
1MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Melaya is a remote MCP server. It gives an assistant hands on your own Android phone and browser: it reads the screen through the accessibility tree, then taps, types and navigates inside the apps and sites you allow-list, with no per-app API. It also builds, schedules and runs agent pipelines across 6k+ connected tools. OAuth 2.1, nothing to install.
Related MCP Servers
- AlicenseAqualityAmaintenanceThe local MCP server that gives any AI agent safe desktop control. Provides 6 compact tools (computer, accessibility, window, system, browser, task) for cross-platform GUI automation with ground-truth verification.261,074 npm408MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that gives any AI assistant eyes and hands on your desktop — screenshots, clicking, typing, OCR, window management, accessibility-tree queries, workflow recording.5Apache 2.0
- FlicenseNot gradedqualityBmaintenanceMCP server that lets an LLM see and drive any running Windows app: attach a window, screenshot it, read its UI Automation tree, and send clicks, typed text, and key presses with pixel coordinates.-
- FlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to control Windows by clicking, typing, and navigating with a visible cursor overlay, using a layered approach (native UIA, browser CDP, pixel fallback) for reliable interaction.1-