Usage
Parameters
This command takes no parameters.Response
Operating system name (
"macos", "windows", or "linux")agent-desktop version string (e.g.,
"0.1.0")Accessibility permission status
Number of element refs in the last snapshot. Omitted if no snapshot has been taken yet.
Examples
Status with Permission Granted
Status with Permission Denied
Status Before Any Snapshot
Use Cases
Health Check
Health Check
Verify agent-desktop is working before running commands:
Version Check
Version Check
Verify agent-desktop version in scripts:
Ref Count Monitoring
Ref Count Monitoring
Check how many refs are available:
Platform Detection
Platform Detection
Detect the current platform:
Permission State
Thepermissions.granted field indicates whether macOS accessibility permission is granted. If false, the suggestion field provides instructions:
- Open System Settings
- Go to Privacy & Security > Accessibility
- Add your terminal app (e.g., Terminal, iTerm2)
- Run
agent-desktop statusagain to verify
permissions command with --request to trigger the system dialog:
Ref Count
Theref_count field shows how many element refs were allocated in the last snapshot:
- Omitted: No snapshot has been taken yet
- 0: Last snapshot had no interactive elements (or was run with
--interactive-onlyon a static UI) - N > 0: N interactive elements have refs (
@e1through@eN)
- Verifying refs are available before using them in commands
- Debugging empty snapshots
- Monitoring UI complexity
Platform Support
Theplatform field indicates the current OS:
| Value | OS |
|---|---|
macos | macOS (fully supported) |
windows | Windows (Phase 2) |
linux | Linux (Phase 2) |
macos is fully implemented.
Related Commands
- permissions - Check or request accessibility permission
- version - Show version information only
- snapshot - Take a snapshot to populate
ref_count