# simulator_terminate_app

> チームのシミュレータで実行中のアプリを bundle ID で終了する MCP ツールです。

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

`simulator_terminate_app` は、チームの動作中のシミュレータで実行中のアプリを bundle ID で終了します。アプリはインストールされたままで、データも残ります。コールドスタートをテストする場合などは、[simulator_launch_app](https://air.build/ja/docs/mcp-tools/simulator_launch_app/) でもう一度起動してください。もう一度呼び出しても問題ありません。

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

## 入力

| 入力 | 型 | 必須 | デフォルト | 内容 |
| --- | --- | --- | --- | --- |
| `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。[simulator_apps](https://air.build/ja/docs/mcp-tools/simulator_apps/) から取得します |

## 結果

| フィールド | 内容 |
| --- | --- |
| `ok` | `true` |

```json
{ "ok": true }
```

## エラー

| メッセージ | 発生する状況 | 対処 |
| --- | --- | --- |
| bundleId is required. | `bundleId` がない、または空 | bundle ID を送ってください |

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

## 例

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