Push a file to the device
push_fileCopy a file from the host machine to a connected Android device via adb push; remote destination must stay within configured allowed roots.
Instructions
Copy a file from the host machine to the device (adb push). For safety the remote path must be inside the configured allowed roots (default /sdcard, /storage/emulated/0, /data/local/tmp).
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": {
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "push_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| local_path | Yes | Source path on the host machine (relative paths resolve against the server cwd). | |
| remote_path | Yes | Destination path on the device, e.g. "/sdcard/Download/app.apk". |