simulator_apps
這個 MCP 工具會列出團隊模擬器上安裝的 App 及其 bundle ID。
simulator_apps 會列出團隊正在執行的模擬器上安裝的 App:每個 App 的 bundle ID、名稱和版本。預設只列出有人安裝的 App(人、Agent 或 simulator_install_app);all 會加上 iOS 內建的 App。它是唯讀的。請把 bundle ID 用於 simulator_launch_app、simulator_terminate_app 和 simulator_uninstall_app。
| 唯讀 | 破壞性 | 冪等 |
|---|---|---|
| 是 | 否 | 是 |
輸入
| 輸入 | 類型 | 必填 | 預設值 | 作用 |
|---|---|---|---|---|
teamId |
字串(UUID) | 是 | — | 團隊,來自 list_teams |
simulator |
string | 否 | 團隊的預設裝置 | 哪種裝置,使用 list_simulators 中的 id |
all |
boolean | 否 | false |
為 true 時也會列出 Apple 的系統 App |
結果
| 欄位 | 說明 |
|---|---|
ok |
true |
apps |
已安裝的 App |
apps[].bundleId |
App 的 bundle ID |
apps[].name |
App 的名稱(如果有) |
apps[].version |
App 的版本(如果有) |
apps[].type |
user(有人安裝的)或 system(iOS 內建;僅在使用 all 時出現) |
{ "ok": true, "apps": [ { "bundleId": "com.example.notes", "name": "Notes", "version": "1.0", "type": "user" } ] }錯誤
只有每個模擬器工具都可能傳回的錯誤:請參閱 start_simulator。
範例
{"name": "simulator_apps", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}