shell
Executes device commands and returns exit code, output, and screen changes, so agents can change settings like night mode or brightness, open URLs, and adjust simulator appearance.
Instructions
Run a device shell command: exit code, output, screen change. Prefer it for settings: cmd uimode night yes, settings put system screen_brightness 20, am start -a android.intent.action.VIEW -d <url>. Simulator: simctl ui appearance dark. A physical iPhone has no shell.
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": {
"command": "<command>"
},
"name": "shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes |