file_push
Transfer files from a host machine to an Android device by specifying the local file path and destination directory, enabling direct file deployment to connected devices via ADB.
Instructions
Push a file from the host machine to the device.
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": {
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "file_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial number | |
| localPath | Yes | Absolute path to the file on the host machine | |
| remotePath | Yes | Destination path on the device (e.g., /sdcard/myfile.txt) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | adb push result or a confirmation message | |
| success | Yes | Whether the file was pushed |