Phone Command Tool
phone-command-toolSend a device command to a farm phone. The slot must be cast/live. Supported ops:
clipboard_set (text): set the phone clipboard
clipboard_get: read the phone clipboard back
open_url (url): open a URL / deep link
reboot: restart the phone
clear_photos: empty the camera roll
get_ip: report the phone's LAN IP
brightness (level): set screen brightness (0-1)
wifi / airplane / cellular / flashlight (on): toggle the named radio/flashlight Op-specific fields (text, url, level, on) are only sent when provided. Returns a run id. The run succeeds once the phone has run the command; for get_ip and clipboard_get its result.value holds the IP or clipboard text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Desired on/off state (for wifi, airplane, cellular, flashlight). Optional. | |
| op | Yes | Command op: clipboard_set, clipboard_get, open_url, reboot, clear_photos, get_ip, brightness, wifi, airplane, cellular, flashlight. | |
| url | No | URL or deep link to open (for open_url). Optional. | |
| slot | Yes | Phone slot to command, given as the `slot` UUID from list-phones (its display name like "slot12" is not accepted). Must be cast/live. | |
| text | No | Text to set on the clipboard (for clipboard_set). Optional. | |
| level | No | Brightness level 0-1 (for brightness). Optional. |