mac_state
Retrieve a real-time snapshot of macOS: active app, open windows, selected files, and running processes, so your automation knows exactly what's on screen.
Instructions
Read current macOS state: frontmost app, windows, Finder selection, running apps.
Examples:
All state: {} (returns everything)
Window list only: { include: ["windows"] }
Frontmost app: { include: ["frontmost_app"] }
Limitations:
Window list requires Accessibility for the apps you want to see.
"clipboard" still works but
mac_clipboardis preferred (lighter + write support).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | What state to query (default: all) |