| name | cli-anything-windows-control |
| description | Windows UI Automation CLI harness - complete mouse, keyboard, window, system, and UI control via jingmai-agent action system |
Windows Control CLI Skill
AI agent skill for controlling Windows through the cli-windows-control CLI.
Installation
cd agent-harness
pip install -e .
Command Groups
Mouse Control
cli-windows-control mouse click --x 100 --y 200
cli-windows-control mouse double-click --x 500 --y 300
cli-windows-control mouse move --x 400 --y 200
cli-windows-control mouse drag --start-x 100 --start-y 100 --end-x 400 --end-y 300
cli-windows-control mouse click-input --x 200 --y 150 --pressed CONTROL --double
cli-windows-control mouse click-fraction --frac-x 0.5 --frac-y 0.5
Keyboard Control
cli-windows-control keyboard type --text "Hello World{ENTER}"
cli-windows-control keyboard press --keys enter
cli-windows-control keyboard hotkey --keys ctrl+c
cli-windows-control keyboard hotkey --keys alt+tab
Window Management
cli-windows-control window list
cli-windows-control window info
cli-windows-control window open --name notepad --keyword "记事本"
UI Inspection
cli-windows-control ui screenshot
cli-windows-control ui screenshot --full
cli-windows-control ui tree --depth 10
cli-windows-control ui controls --depth 8
System Operations
cli-windows-control system info
cli-windows-control system run --command "dir" --shell cmd
cli-windows-control system run --command "Get-Process" --shell powershell
cli-windows-control system process --name python
cli-windows-control system wait --seconds 2
File Operations
cli-windows-control file list --path C:\ --pattern "*.txt"
cli-windows-control file read --path C:\test.txt --limit 100
cli-windows-control file write --path C:\output.txt --content "Hello"
cli-windows-control file exists --path C:\test.txt
JSON Output for AI Agents
Always use --json flag for programmatic output:
cli-windows-control --json window list
cli-windows-control --json system info
cli-windows-control --json ui controls --depth 8
Interactive REPL
cli-windows-control
windows-control> mouse click --x 100 --y 200
windows-control> keyboard type --text "Hello"
windows-control> quit
Error Handling
- Non-zero exit code on failure
- Error messages in
error field (JSON mode) or stderr (human mode)
- Always verify coordinates before clicking
- Use
--json for reliable parsing in scripts