Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add trsdn/mcp-server-uiautomation --skill uia-cligit clone --depth 1 https://github.com/trsdn/mcp-server-uiautomationWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/trsdn/mcp-server-uiautomation/uia-cli)<a href="https://agentmods.dev/skills/trsdn/mcp-server-uiautomation/uia-cli"><img src="https://agentmods.dev/badge/skills/trsdn/mcp-server-uiautomation/uia-cli.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.01506 |
| Opus 5 | $0.00031 | $0.00753 |
| Sonnet 5 | $0.00012 | $0.00301 |
| Haiku 4.5 | $0.00006 | $0.00151 |
Grade A, and why
uia-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use uiamcp when you need to see or drive real desktop UI from a terminal.
Everything prints JSON on stdout; errors go to stderr with a non-zero exit code.
Start here
uiamcp desktop # is UI Automation reachable at all
uiamcp focused # what has keyboard focus right now
uiamcp snapshot # desktop root plus focused element
Single-criterion shortcuts, when you only need the first match:
uiamcp find-name "Calculator"
uiamcp find-class "Notepad"
uiamcp find-automation-id "SearchBox"
uiamcp handle --handle 0x1234
uiamcp point --x 400 --y 300
For anything more specific, use inspect or find with the locator flags
below — they compose, and the shortcuts do not.
Locator flags
Almost every command takes the same locator. Combine flags to narrow; they are AND-composed.
| Flag | Selects |
|---|---|
--root |
the desktop root |
--focused |
the focused element |
--from-focused |
search starting at the focused element |
--handle <hwnd> |
element owning a native window handle |
--x <x> --y <y> |
element at a screen point |
--name <text> |
by name |
--class <class> |
by class name |
--automation-id <id> |
by automation id |
--framework-id <id> |
by framework (Win32, WPF, XAML, Chrome) |
--control-type <id> |
by control type id (50000 Button, 50004 Edit, 50032 Window) |
--process-id <pid> |
by owning process |
--not-name, --not-class, --not-automation-id, --not-control-type |
exclude matches |
--scope <element|children|descendants|subtree> |
search depth |
--no-virtualized |
do not ask ItemContainer providers for unmaterialized items |
--cache, --cache-scope, --cache-view |
build-cache request |
Finding and walking
uiamcp find --root --control-type 50000 --max-results 50 # all buttons
uiamcp find --root --class Shell_TrayWnd --not-name "Taskbar" # exclusions
uiamcp inspect --name "Save" --try # null + exit 0 if absent
uiamcp children --handle 0x1234 --view control
uiamcp descendants --focused --view raw --max-results 100
uiamcp navigate --focused --direction parent
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +125 lines · +60 tokens per session 6439284974e9
- 8d ago First seen · 15 lines · 2 tokens per session scan A bd4010ea36b1
uia-cli is a skill published in the GitHub repository trsdn/mcp-server-uiautomation (2 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 1,506 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
agent-desktop
Reliable computer use via native OS accessibility trees. Use when an AI agent needs to see and operate desktop applications (click buttons, fill forms, navigate menus, read UI state, toggle checkboxes, scroll, drag, type text, take screenshots, manage windows, use clipboard, manage notifications). Covers 59 command…
agent-desktop-ffi
C-ABI bindings over agent-desktop's PlatformAdapter. Consumers (Python ctypes, Swift, Node ffi-napi, Go cgo, C++, Ruby fiddle) link libagentdesktopffi.{dylib,so,dll} and call ad functions directly instead of spawning the CLI binary per call. The canonical observe-act workflow is: adinit → adadaptercreate[withsession]…
macos-harness
Control a whole Mac from one persistent Python session with screenshots, PID-targeted input, an animated virtual pointer, targeted Apple Accessibility, Apple Events, Browser Harness CDP, and filesystem access. Use for native, Electron, browser, dialog, file, or cross-app tasks without moving the physical cursor or…
kmsg
Use KMSG to read, watch, and send KakaoTalk messages safely from a coding agent. Use whenever the user mentions KakaoTalk or kmsg and wants chat discovery, recent messages, monitoring, text or image delivery, setup checks, or CLI troubleshooting. Do not use for other messaging platforms or private KakaoTalk protocol…
axe-core Accessibility Automation
Automated accessibility testing with axe-core integrated into CI pipelines, including custom rule configuration, issue prioritization, and remediation guidance.
agent-orchestration
A guide for coordinating independent AI coding agents such as Claude Code, OpenCode, or Hermes. It explains how to register each agent, check which ones are running, choose one for a task, and record stable information about how to use it.