simulator_apps
这个 MCP 工具列出团队模拟器上安装的 App 及其 bundle ID。
simulator_apps 列出团队正在运行的模拟器上安装的 App:每个 App 的 bundle ID、名称和版本。默认只列出有人安装的 App(人、智能体或 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"}}