simulator_uninstall_app
这个 MCP 工具从团队的模拟器中移除一个 App 及其数据。
simulator_uninstall_app 从团队正在运行的模拟器中移除一个 App 及其全部数据。模拟器是共享的,所以对于 AirBuild App 的模拟器面板和团队的智能体,该 App 也会消失。它是破坏性的(destructiveHint: true)。如果想让 App 重新开始而不移除它,请改用 simulator_terminate_app 退出它。
| 只读 | 破坏性 | 幂等 |
|---|---|---|
| 否 | 是 | 是 |
输入
| 输入 | 类型 | 必填 | 默认值 | 作用 |
|---|---|---|---|---|
teamId |
字符串(UUID) | 是 | — | 团队,来自 list_teams |
simulator |
string | 否 | 团队的默认设备 | 哪种设备,使用 list_simulators 中的 id |
bundleId |
string | 是 | — | App 的 bundle ID,来自 simulator_apps |
结果
| 字段 | 说明 |
|---|---|
ok |
true |
{ "ok": true }错误
| 消息 | 何时出现 | 怎么办 |
|---|---|---|
| bundleId is required. | 缺少 bundleId,或它为空 |
发送 bundle ID |
另外还有每个模拟器工具都可能返回的错误:见 start_simulator。
示例
{"name": "simulator_uninstall_app", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "bundleId": "com.example.notes"}}