Duo Pose and State
simctl-duoControl a booted Duo simulator's hinge angle or pose and interface orientation, then read back observed state using an explicit UDID.
Instructions
simctl-duo
Control a booted Duo's hinge and interface orientation, with observed state readback.
Requires an explicit simulator UDID. operation: state, hinge, or rotate. hinge accepts angle (0–180 degrees) or pose (closed=0, partial=90, open=180), exclusively. rotate accepts orientation: portrait, landscape, portrait-upside-down, landscape-flipped. The private helper is compiled with Xcode on first use. No additional CLI is required. Changes poll readback for five seconds; hinge tolerance is two degrees. Endpoint changes also verify the active cover/inner display. Intermediate angles do not imply a specific display. Research credits: https://github.com/artemnovichkov/hinge and https://github.com/skarol/duoctl. Replace the private backend when supported headless APIs provide equivalent verified behavior; XCTest-only hinge APIs are insufficient. Folding and rotation can migrate independently. idb coordinate touches on the inner screen are unverified. Use explicit display screenshots.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"udid": "<udid>",
"operation": "<operation>"
},
"name": "simctl-duo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pose | No | ||
| udid | Yes | ||
| angle | No | ||
| operation | Yes | ||
| orientation | No |