uia-cli

uia-cli is a skill for Claude Code, Codex from trsdn/mcp-server-uiautomation. It costs 62 tokens per session (1,506 once invoked), scanned A, original, MIT.

A command-line skill for inspecting the computer’s desktop and the application currently in focus. It uses uiamcp, a tool for reading visible interface elements.

In plain words
What is it for?
Use it to view the desktop, inspect the focused application, take an interface snapshot, or find elements by name, class, or automation ID.
Why use it?
It helps an agent inspect what is actually open on screen instead of relying only on source code or assumptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to view the desktop, inspect the focused application, take an interface snapshot, or find elements by name, class, or automation ID.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trsdn/mcp-server-uiautomation/uia-cli
Install

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.

Any agent
npx skills add trsdn/mcp-server-uiautomation --skill uia-cli
Clone the repo
git clone --depth 1 https://github.com/trsdn/mcp-server-uiautomation

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for uia-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/trsdn/mcp-server-uiautomation/uia-cli.svg)](https://agentmods.dev/skills/trsdn/mcp-server-uiautomation/uia-cli)
Your own site
<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>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 6439284974e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

skills/uia-cli/SKILL.md · 140 lines

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

Read the full file on GitHub · 140 lines

Changes

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.

  1. 4d ago Changed · +125 lines · +60 tokens per session 6439284974e9
  2. 8d ago First seen · 15 lines · 2 tokens per session scan A bd4010ea36b1

Subscribe to this mod's changes

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.

Related

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…

lahfir/agent-desktop · 210 tokens

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]…

lahfir/agent-desktop · 111 tokens

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…

browser-use/macos-harness · 71 tokens

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…

channprj/kmsg · 71 tokens

axe-core Accessibility Automation

Automated accessibility testing with axe-core integrated into CI pipelines, including custom rule configuration, issue prioritization, and remediation guidance.

PramodDutta/qaskills · 30 tokens

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.

mrpulor-gh/nuphus · 0 tokens