activate_app
Bring the requested app to the foreground and return its state for foreground interaction.
Instructions
Bring the requested app forward and return its state. Use when foreground interaction is required. On Windows and Linux, changing foreground requires 10 seconds without human keyboard or mouse activity; otherwise PERSON_ACTIVE is returned with no foreground change or input. Inspect the returned window before input and do not compete with user activity.
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": {
"app": "<app>"
},
"name": "activate_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name or full app path; macOS bundle ID; macOS and Windows pid:<pid>; Windows process name, window title fragment, or Start-menu shortcut name; Linux desktop entry name, executable name or window title fragment | |
| disableDiff | No | ||
| waitForText | No | Wait for exact, case-sensitive text in element lines only (within scope when supplied), excluding headers and window summaries, without UI actions. Use only a known expected label during a real load; omit on ordinary reads. | |
| waitTimeoutMs | No | Polling deadline for waitForText; defaults to 5000 ms. Native call timeouts remain separate. | |
| includeScreenshot | No | Default false. Use true for visual content or coordinate input; omit for indexed controls, menus, dialogs and text editing. |