pull_file
Transfer files from Android devices to your computer for development, testing, or debugging workflows. Specify remote and local paths to copy device files.
Instructions
Pull a file from 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": {
"remote_path": "<remote_path>",
"local_path": "<local_path>"
},
"name": "pull_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote_path | Yes | ||
| local_path | Yes | ||
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/adb_mcp_server/server.py:965-968 (handler)The pull_file tool handler, decorated with @mcp.tool() which serves as both the implementation and registration in the MCP framework. It executes the ADB 'pull' command to download a file from the Android device to local path.
@mcp.tool() def pull_file(remote_path: str, local_path: str, device_serial: str | None = None) -> str: """Pull a file from the device""" return run_adb(["pull", remote_path, local_path], device_serial) - src/adb_mcp_server/server.py:965-965 (registration)The @mcp.tool() decorator registers the pull_file function as an MCP tool.
@mcp.tool()