mac_app
Launch, activate, hide, unhide, or quit macOS apps by display name, bundle ID, or .app path, with optional window waiting and force-quit for reliable lifecycle control.
Instructions
Launch, activate, hide, unhide or quit an app (display name, bundle id, or .app path). launch: attaches to a running instance (activate:true brings it forward), else starts it in the background unless activate:true and waits for a window (wait_window, default true). quit: graceful, verified by the process ending (a save dialog keeps it running — reported); force:true force-quits and loses unsaved work. Finder, Dock, loginwindow and other session processes, and the MCP host itself, are never quit. launch with cdp_port (0 = pick a free port; needs NORACU_ALLOW_CDP=1) starts a Chromium/Electron app fresh with a loopback DevTools port for browser_launch cdp_port — refused if the app is already running.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"app": "<app>"
},
"name": "mac_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| force | No | ||
| action | Yes | ||
| activate | No | ||
| cdp_port | No | ||
| timeout_ms | No | ||
| wait_window | No |