Skip to main content
Glama

push_file

Transfer files from your computer to an Android device using ADB for development, testing, or debugging workflows.

Instructions

Push a file to the device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
local_pathYes
remote_pathYes
device_serialNo

Implementation Reference

  • The primary handler for the 'push_file' MCP tool. Decorated with @mcp.tool() for registration, it executes 'adb push' to transfer a file from local_path to remote_path on the specified Android device.
    @mcp.tool() def push_file(local_path: str, remote_path: str, device_serial: str | None = None) -> str: """Push a file to the device""" return run_adb(["push", local_path, remote_path], device_serial)
  • The @mcp.tool() decorator registers the push_file function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulkr/r_adb_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server