adb_file_move
Move or rename files or directories on an Android device via ADB; use root for protected paths and expect copy+delete behavior across filesystems.
Instructions
Move or rename a file/directory on the device. Moving FROM a system path is destructive — source depth protection refuses if source is at depth ≤ 1 from root. Symlinks resolved before checks. Cross-filesystem moves (e.g., /data → /sdcard) do a copy+delete internally and can be slow for large files.
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_move"
}
}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 | |
| destination | Yes | Destination path |