Send phone command
phone-command-toolSend a device command to a farm phone.
The phone must show video_live: true in list-phones-tool. 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 (admins only; refused for everyone else)
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. Calls the 0bull REST API (POST /api/v1/phones/{slot}/commands), see https://0bull.net/docs/api.
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": {
"slot": "<slot>",
"op": "<op>"
},
"name": "phone-command-tool"
}
}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-tool (its display name like "slot12" is not accepted). The phone must show `video_live: true` there. | |
| text | No | Text to set on the clipboard (for clipboard_set). Optional. | |
| level | No | Brightness level 0-1 (for brightness). Optional. |