| name | application-use |
| description | macOS desktop automation CLI for AI agents. Use for opening apps, clicking elements, filling forms, scrolling, or any macOS desktop task. Triggers: "open an app", "click a button", "fill a form", or programmatic macOS interaction. |
macOS Desktop Automation (application-use)
A CLI to automate macOS applications.
install
npm i -g application-use
🚀 Core Workflow
- Open:
application-use open --appName "<Name>" -- Auto-shows initial snapshot.
- Interact: Use hints (e.g.,
[A]) to click, type, or scroll.
- Auto-Update: Commands (
open, click, type, sendkey, scroll) automatically display an updated snapshot.
[!TIP]
Use application-use snapshot only when you need a fresh view without any action (e.g., after waiting for dynamic content).
🛠 Command Reference
| Command | Usage | Description |
|---|
open | open --appName "Safari" | Opens app and shows snapshot. |
click | click A [--right] [--double] | Clicks element by hint letter. |
fill | fill A "text" or fill "text" | Fills text into hint or focused element. |
sendkey | sendkey enter, sendkey cmd+v | Sends single or shortcut keys. |
scroll | scroll "Main" down [500] | Scrolls area by name/hint. |
screenshot | screenshot [path] [--frame] | Captures window or specific coordinates. |
search | search "Safari" | Finds installed application names. |
close | close --appName "Safari" | Quits the specified application. |
type | type "text" | Types text into the focused element. |
🏷 Hint System
- Elements:
[A], [B], [AA]... (Interactive elements).
- Areas:
[a], [b]... (Targets for scrolling).
- Special Marks:
(*) = OCR-detected; (+) = Newly added since last snapshot.
⚡️ Common Automation Patterns
Form Filling & Submission & scroll
application-use open --appName "Safari"
application-use fill A "user@example.com"
application-use sendkey tab
application-use fill "password"
application-use sendkey enter
application-use scroll d down 1000
Browser Navigation
application-use open --appName "Safari"
application-use fill A "https://google.com" && application-use sendkey enter
File Operations (Finder)
application-use open --appName "Finder"
application-use sendkey cmd+shift+g
application-use fill "/Users/name/Downloads" && application-use sendkey enter
application-use click A --right
application-use click B