PairOnce
v0.12.2Send files to a phone from an AI agent, or ask it for a photo, scan or file.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pair_device
Pair one of the user's devices (phone or computer) with this agent through PairOnce; needed once per device. Three calls. First call: returns a six-digit code; tell the user to open https://paironce.com on that device, choose "Enter a code" and type it. Second call: waits until they did and returns a safety code; ask the user whether their device shows the same one. Third call: confirm true if they said yes, false if not. Never confirm without asking the user.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Third call: whether the user said their device shows the same safety code. |
wait_seconds | number | Second call: how long to wait for the user to type the code, 120 by default, at most 600. |
list_devices
List the devices this agent is paired with through PairOnce: each name with its id. Pass the id as device when two devices share a name.
send_file
Send files from this computer to one of the user's paired devices through PairOnce, end-to-end encrypted. The user accepts each file on that device, and PairOnce must be open there. Hidden files and folders (such as .env or .ssh) are not sent. Returns when that device has confirmed each file arrived.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files to send (absolute paths, or relative to the server's folder). |
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
send_text
Send a message or a link to one of the user's paired devices through PairOnce, end-to-end encrypted. PairOnce must be open there.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
receive_files
Wait for the user to send files (photos, scans, documents) from one of their paired devices, and save them into a folder here. Tell the user to open https://paironce.com on that device, tap Connect, then choose the files. Returns the saved paths and any messages the user sent.
| Parameter | Type | Description |
|---|---|---|
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
folder | string | Where to save: a relative path inside the server's folder, with no folder starting with a dot. Default: inbox. |
wait_seconds | number | How long to wait for the user, 120 by default, at most 600. |
request_photo
Ask the user for a photo from one of their paired devices (usually their phone), for example of a label, a screen, an error message or a document. Their device shows your request with your reason; they take the photo there and it is saved here (default ./inbox). They may decline.
| Parameter | Type | Description |
|---|---|---|
purpose * | string | What you need and why, in one or two sentences the user reads on their device (at most 300 characters). |
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
folder | string | Where to save: a relative path inside the server's folder, with no folder starting with a dot. Default: inbox. |
wait_seconds | number | How long to wait for the user, 120 by default, at most 600. |
request_scan
Ask the user to scan paper pages with one of their paired devices (usually their phone): it makes a PDF there with straightened pages, which is saved here (default ./inbox). Their device shows your request with your reason. They may decline.
| Parameter | Type | Description |
|---|---|---|
purpose * | string | What you need and why, in one or two sentences the user reads on their device (at most 300 characters). |
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
folder | string | Where to save: a relative path inside the server's folder, with no folder starting with a dot. Default: inbox. |
wait_seconds | number | How long to wait for the user, 120 by default, at most 600. |
request_file
Ask the user for a file from one of their paired devices: their device shows your request with your reason, they choose the file there, and it is saved here (default ./inbox). They may decline.
| Parameter | Type | Description |
|---|---|---|
purpose * | string | What you need and why, in one or two sentences the user reads on their device (at most 300 characters). |
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
folder | string | Where to save: a relative path inside the server's folder, with no folder starting with a dot. Default: inbox. |
wait_seconds | number | How long to wait for the user, 120 by default, at most 600. |
watch_frames
See what the user sees: ask to watch their camera or screen on one of their paired devices, then get still pictures of it, returned as images you can look at (and saved, default ./inbox/watch). The first call asks; their device shows your reason and they share the camera or the screen there, or decline. Later calls return new stills from the same share, so you can guide them step by step ("now turn the switch on the left"). It ends when they stop, when you call watch_stop, or after 5 minutes without a call; their device ends it after 15 minutes.
| Parameter | Type | Description |
|---|---|---|
count | number | Stills to take now, 1 to 5. Default 1. |
device | string | Name or id of a paired device (from list_devices); use the id when two devices share a name. Optional when only one is paired. |
folder | string | Where to save the stills: a relative path inside the server's folder, with no folder starting with a dot. Default: inbox/watch. |
interval_seconds | number | Seconds between those stills, 0.5 to 10. Default 1. |
purpose | string | Needed when not watching yet: what you want to see and why, in one or two sentences the user reads on their device (at most 300 characters). |
wait_seconds | number | When asking: how long to wait for the user to share, 120 by default, at most 600. |
watch_stop
Stop watching the user's camera or screen (see watch_frames). Their device stops sharing.
status
What PairOnce is doing now: the call that is waiting (for example for the user to answer a photo request on their phone), how long it has waited and how much longer it will, the device connection kept open, and files or messages that arrived and wait for receive_files. Answers at once, even while another call waits.
cancel
Stop the call that is waiting now (see status): a request on the user's device is withdrawn there, a file on its way stops, and the next call can start. Answers at once.