Pull Adb File
pull_adb_filePull an absolute device file path via ADB into a selected local directory, compute its SHA-256 digest, and prevent overwriting existing copies; device access remains read-only.
Instructions
Pull one absolute device path (a database, shared-preferences XML, or any readable file) into a caller-selected output directory, digesting it with SHA-256. The local copy must not already exist. Read-only with respect to the device.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serial": "emulator-5554",
"device_path": "/data/data/com.example.app/databases/app.db",
"output_directory": "/tmp/rea-pulls"
},
"name": "pull_adb_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Device serial exactly as `adb devices` reports it | |
| device_path | Yes | Absolute device filesystem path to pull | |
| output_directory | Yes | Local directory for the pulled file; must not already contain the file |