Push file
push_filePut a file on the phone, e.g. a game file, mod, save or document an app imports through Android's file picker: from a public download URL (up to 2 GB) or inline content. A file name lands in /sdcard/Download, which the picker shows under Downloads; a file already at that path is replaced. Returns the path and size. Files from your own disk: POST /v1/phones/{id}/files over REST.
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": {
"phone_id": "<phone_id>",
"path": "<path>"
},
"name": "push_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Direct https link to the file; or give content instead | |
| path | Yes | A file name like "game.apk" (goes to /sdcard/Download) or a path under /sdcard/ | |
| content | No | The file itself, up to 180,000 characters: text, or base64 with encoding "base64" | |
| encoding | No | How content is written: utf8 (default), or base64 for a binary file | |
| phone_id | Yes | Phone id, ph_… |