Read or set fold state
mobile_device_foldList or set a foldable device's posture state (OPEN, CLOSED, or numeric) using its ADB serial; non-foldable devices return foldable: false.
Instructions
List cmd device_state postures and, when state is set, switch to a name such as OPEN or CLOSED or a numeric identifier. Non-foldables return foldable false.
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": {
"serial": "<serial>"
},
"name": "mobile_device_fold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| reason | No | ||
| states | No | ||
| foldable | No | ||
| currentId | No | ||
| identifier | No | ||
| currentName | No |