ui_global_action
Trigger Android system actions—back, home, recents, notifications, quick settings, lock screen, power dialog, or screenshot—to control device UI.
Instructions
Perform a system action like the navigation buttons or the status bar do.
lock_screen turns the screen off and locks the phone (the next UI op unlocks it); take_screenshot saves an image in the phone's gallery (prefer ui.screenshot); power_dialog needs the on-phone server.
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": "ui_global_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | back, home, recents, notifications, quick_settings, power_dialog, lock_screen or take_screenshot. |