Push file to device
adb_pushPush a file from the server to an Android device via ADB, overwriting any existing file with the same name.
Instructions
Copy a file from the server's file roots (file_roots) to the device, overwriting a file of the same name there. To install an APK use adb_install instead. The reverse is adb_pull.
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": {
"host_path": "<host_path>",
"device_path": "<device_path>"
},
"name": "adb_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial from adb_devices. Optional when exactly one device is connected. | |
| host_path | Yes | Absolute path of the file on the server, inside file_roots. | |
| device_path | Yes | Destination on the device, e.g. /sdcard/Download/file.apk or /data/local/tmp/. |