iphone_lock
Locks the iPhone screen or wakes and swipes to unlock it. Unlocking completes only on phones without a passcode; with a passcode or Face ID it wakes the screen and reports that the user must unlock.
Instructions
Lock the iPhone, or wake and unlock it.
'unlock' only completes on phones without a passcode; with a passcode or Face ID it wakes the screen
and reports that the user must unlock – never try to enter a passcode. Use iphone_status to see the
current lock state and iphone_keep_awake to prevent auto-lock.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": {
"action": "<action>"
},
"name": "iphone_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'lock' turns the screen off and locks; 'unlock' wakes the screen and swipes to unlock. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |