UNPKG

mcp-appium-visual

Version:

MCP Server for Appium mobile automation with visual recovery

73 lines 2.38 kB
/** * Utility class for executing ADB commands */ export declare class AdbCommands { /** * Execute an ADB command * * @param command The ADB command to execute * @returns The output from the command execution */ static executeCommand(command: string): Promise<string>; /** * Get a list of connected devices * * @returns List of device IDs */ static getDevices(): Promise<string[]>; /** * Install an APK on a device * * @param deviceId Target device ID * @param apkPath Path to the APK file * @returns Installation result message */ static installApp(deviceId: string, apkPath: string): Promise<string>; /** * Uninstall an app from a device * * @param deviceId Target device ID * @param packageName Package name of the app to uninstall * @returns Uninstallation result message */ static uninstallApp(deviceId: string, packageName: string): Promise<string>; /** * Take a screenshot on the device * * @param deviceId Target device ID * @param outputPath Local path to save the screenshot * @returns Screenshot capture result */ static takeScreenshot(deviceId: string, outputPath: string): Promise<string>; /** * Get the current screen resolution * * @param deviceId Target device ID * @returns The screen resolution in the format "widthxheight" */ static getScreenResolution(deviceId: string): Promise<string>; /** * Get a list of installed packages * * @param deviceId Target device ID * @returns List of installed package names */ static getInstalledPackages(deviceId: string): Promise<string[]>; /** * Launch an application by package name * * @param deviceId Target device ID * @param packageName Package name of the app to launch * @param activityName Optional activity name to launch * @returns Command execution result */ static launchApp(deviceId: string, packageName: string, activityName?: string): Promise<string>; /** * Check if device is connected * * @param deviceId Device ID to check * @returns true if the device is connected, false otherwise */ static isDeviceConnected(deviceId: string): Promise<boolean>; } //# sourceMappingURL=adbCommands.d.ts.map