shutdown_simulator
这个 MCP 工具为所有人关闭团队中某种设备的共享模拟器,连同其中安装的 App 和数据。
shutdown_simulator 关闭团队中某种设备的模拟器。模拟器是共享的,所以它会对所有人消失:AirBuild App 的模拟器面板和团队的智能体也会失去它,连同所有已安装的 App 及其全部状态。下一次 start_simulator 会提供一台全新的设备。它是破坏性的(destructiveHint: true)。对已经关闭的模拟器调用它不会有任何作用。
你很少需要它:没人使用的模拟器会在最后一次调用约五分钟后自行关闭。
| 只读 | 破坏性 | 幂等 |
|---|---|---|
| 否 | 是 | 是 |
输入
| 输入 | 类型 | 必填 | 默认值 | 作用 |
|---|---|---|---|---|
teamId |
字符串(UUID) | 是 | — | 团队,来自 list_teams |
simulator |
string | 否 | 团队的默认设备 | 哪种设备,使用 list_simulators 中的 id |
结果
| 字段 | 说明 |
|---|---|
id |
设备的 ID |
state |
如果它原本正在运行或正在启动、现在正在关闭,为 stopping;如果它原本没有运行,为 off |
{ "id": "iphone-example", "state": "stopping" }错误
| 消息 | 何时出现 | 怎么办 |
|---|---|---|
| No Simulator id. Offered: ids. | simulator 不是提供的设备 ID |
使用 list_simulators 中的 id |
| AirBuild offers no Simulator right now. | 目前没有提供任何设备 | 没有需要关闭的 |
示例
{"name": "shutdown_simulator", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "simulator": "iphone-example"}}