android-ui
Execute UI actions on Android devices such as tapping, swiping, inputting text, pressing keys, or launching intents using coordinates, text, keycodes, or package details.
Instructions
Perform various UI interaction operations on an Android device.
Args: ctx: MCP Context. serial: Device serial number. action: The UI action to perform. x: X coordinate (for tap). y: Y coordinate (for tap). start_x: Starting X coordinate (for swipe). start_y: Starting Y coordinate (for swipe). end_x: Ending X coordinate (for swipe). end_y: Ending Y coordinate (for swipe). duration_ms: Duration of the swipe in milliseconds (default: 300). text: Text to input (for input_text). keycode: Android keycode to press (for press_key). package: Package name (for start_intent). activity: Activity name (for start_intent). extras: Optional intent extras (for start_intent).
Returns: A string message indicating the result of the operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | ||
activity | No | ||
duration_ms | No | ||
end_x | No | ||
end_y | No | ||
extras | No | ||
keycode | No | ||
package | No | ||
serial | Yes | ||
start_x | No | ||
start_y | No | ||
text | No | ||
x | No | ||
y | No |