Focus a running application
hs_focus_appBring an already-running macOS application to the foreground. Fails if the app is not running, preventing accidental launches.
Instructions
Bring an already-running application to the front. Unlike hs_launch_app this never starts anything, so it fails if the application is not 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": {
"name": "<name>"
},
"name": "hs_focus_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name or bundle identifier. |