# simulator_launch_app

> チームのシミュレータにインストールされているアプリを bundle ID で起動し、前面に表示する MCP ツールです。

Source: https://air.build/ja/docs/mcp-tools/simulator_launch_app/

`simulator_launch_app` は、チームの動作中のシミュレータにインストールされているアプリを、bundle ID（[simulator_apps](https://air.build/ja/docs/mcp-tools/simulator_apps/) から取得）で起動して前面に表示します。何もインストールしません。存在しないアプリは `app is not installed on this device` で失敗します。何も削除しません。

| 読み取り専用 | 破壊的 | 冪等 |
| --- | --- | --- |
| いいえ | いいえ | いいえ |

## 入力

| 入力 | 型 | 必須 | デフォルト | 内容 |
| --- | --- | --- | --- | --- |
| `teamId` | 文字列（UUID） | はい | — | チーム。[list_teams](https://air.build/ja/docs/mcp-tools/list_teams/) から取得 |
| `simulator` | string | いいえ | チームのデフォルトのデバイス | どのデバイスか。[list_simulators](https://air.build/ja/docs/mcp-tools/list_simulators/#result) の `id` で指定します |
| `bundleId` | string | はい | — | アプリの bundle ID。例：`com.example.notes` |

## 結果

| フィールド | 内容 |
| --- | --- |
| `ok` | `true` |
| `env` | `[]`：環境変数は渡されません |
| `args` | `0`：起動引数は渡されません |

```json
{ "ok": true, "env": [], "args": 0 }
```

## エラー

| メッセージ | 発生する状況 | 対処 |
| --- | --- | --- |
| bundleId is required. | `bundleId` がない、または空 | bundle ID を送ってください |
| app is not installed on this device | その bundle ID のアプリがインストールされていない | [simulator_apps](https://air.build/ja/docs/mcp-tools/simulator_apps/) で確認するか、[simulator_install_app](https://air.build/ja/docs/mcp-tools/simulator_install_app/) でインストールしてください |

このほか、すべてのシミュレータツールが返す可能性のあるエラーがあります。[start_simulator](https://air.build/ja/docs/mcp-tools/start_simulator/#device-errors) を参照してください。

## 例

```json
{"name": "simulator_launch_app", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "bundleId": "com.example.notes"}}
```
