MCP 工具

这个 MCP 工具转动 iPhone Duo 等折叠模拟器的铰链:合上、半开、打开或任意角度。

simulator_fold 转动团队正在运行的折叠模拟器(例如 iPhone Duo)的铰链。提供 posture 或以 degrees 表示的角度,二者只能选一:0 为合上,180 为完全展平。设备达到新角度后调用即返回。之后切换到另一块显示屏最多可能需要 3 秒,所以在向当前使用的屏幕发送坐标之前,请先检查 simulator_displays。重复调用不会有影响。只有一块显示屏的设备会忽略它。设备是共享的,所以折叠会对所有使用它的人显示。

posture 角度
closed 0°
half 130°
open 180°
只读 破坏性 幂等
否 否 是

输入

输入 类型 必填 默认值 作用
teamId 字符串(UUID) 是 — 团队,来自 list_teams
simulator string 否 团队的默认设备 哪种设备,使用 list_simulators 中的 id
posture 字符串:closed、half、open 两者之一 — 命名的位置
degrees 数字,0 到 180 两者之一 — 精确的角度

结果

字段 说明
ok true
degrees 设置后的铰链角度
{ "ok": true, "degrees": 130 }

错误

消息 何时出现 怎么办
Give exactly one of posture or degrees. 两者都提供了,或都没提供 发送其中一个
posture must be one of closed, half, open. 其他姿态 使用以下之一,或使用 degrees
degrees must be a number from 0 to 180. 角度超出范围 发送 0 到 180

另外还有每个模拟器工具都可能返回的错误:见 start_simulator。

示例

{"name": "simulator_fold", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "simulator": "iphone-duo-example", "posture": "open"}}