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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mac_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | What state to query (default: all) |