Activate app
activate_appForeground an app and give it keyboard focus, enabling key presses and typed text to reach it. Call before sending keystrokes when the target app isn't frontmost.
Instructions
Bring an app's windows to the foreground and give it keyboard focus. Call it before press_key or type_text when the target app is not frontmost; element-id actions such as click and set_value do not need it. Side effect: the window the user was working in loses focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name, bundle id, or pid exactly as reported by list_apps |