simulator_terminate_app
チームのシミュレータで実行中のアプリを bundle ID で終了する MCP ツールです。
simulator_terminate_app は、チームの動作中のシミュレータで実行中のアプリを bundle ID で終了します。アプリはインストールされたままで、データも残ります。コールドスタートをテストする場合などは、simulator_launch_app でもう一度起動してください。もう一度呼び出しても問題ありません。
| 読み取り専用 | 破壊的 | 冪等 |
|---|---|---|
| いいえ | いいえ | はい |
入力
| 入力 | 型 | 必須 | デフォルト | 内容 |
|---|---|---|---|---|
teamId |
文字列(UUID) | はい | — | チーム。list_teams から取得 |
simulator |
string | いいえ | チームのデフォルトのデバイス | どのデバイスか。list_simulators の id で指定します |
bundleId |
string | はい | — | アプリの bundle ID。simulator_apps から取得します |
結果
| フィールド | 内容 |
|---|---|
ok |
true |
{ "ok": true }エラー
| メッセージ | 発生する状況 | 対処 |
|---|---|---|
| bundleId is required. | bundleId がない、または空 |
bundle ID を送ってください |
このほか、すべてのシミュレータツールが返す可能性のあるエラーがあります。start_simulator を参照してください。
例
{"name": "simulator_terminate_app", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "bundleId": "com.example.notes"}}