adb_file_copy
Copy files or directories between Android device paths, checking free space before and verifying copied size after; enable recursive mode for directories.
Instructions
Copy a file or directory on the device. Pre-flight checks source size against destination available space. Post-verifies the copy by comparing file sizes. For recursive directory copies, use -r flag.
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": {
"source": "<source>",
"destination": "<destination>"
},
"name": "adb_file_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Use root shell for protected paths | |
| device | No | Device serial | |
| source | Yes | Source file or directory path | |
| recursive | No | Copy directories recursively (-r) | |
| destination | Yes | Destination path |