Launch app
launch_appStarts an installed app by name or id and waits for its first window. Use it when an app is not running yet; if it is already running, it returns the pid instead.
Instructions
Start an installed app that is not running yet, by the name the system's app list shows (the Start menu on Windows, the app launcher on Linux, Applications on macOS) or its id (bundle id on macOS, Start menu AppID on Windows, desktop file id on Linux), then wait for its first window. A unique start of a name is enough ("calc" for Calculator); several matches are listed instead of guessed. If the app is already running, nothing is started and the reply gives its pid: use get_app_state or activate_app. The reply names the running app and its pid for get_app_state. macOS opens it without bringing it to the front; on Windows and Linux its first window may come to the front, so the user's foreground rule applies. The user's app rules apply as they do to every app.
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": "launch_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name as the system lists installed apps ("Calculator", "Visual Studio Code"), or its bundle id, Start menu AppID or desktop file id | |
| wait_seconds | No | How long to wait for the app's first window (default 10). 0 starts it and returns at once. |