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
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote_path | Yes | ||
| local_path | Yes | ||
| device_serial | No |
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()