Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEVICE_IPNoThe IP address of your Android device running AutoBot HTTP service172.22.34.73
DEVICE_PORTNoThe port number of your Android device running AutoBot HTTP service18080

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
get_packagesB
Get all installed packages on the device
Returns:
    str: A list of all installed packages on the device as a string
execute_adb_shell_commandA

Executes an ADB command and returns the output or an error. Args: command (str): The ADB shell command to execute Returns: str: The output of the ADB command

get_uilayoutB
Retrieves information about clickable elements in the current UI.
Returns a formatted string containing details about each clickable elements,
including its text, content description, bounds, and center coordinates.

Returns:
    str: A formatted list of clickable elements with their properties
get_screenshotB

Takes a screenshot of the device and returns it. Returns: Image: the screenshot

get_package_action_intentsB
Get all non-data actions from Activity Resolver Table for a package
Args:
    package_name (str): The name of the package to get actions for
Returns:
    list[str]: A list of all non-data actions from the Activity Resolver Table for the package
clickB
Click at the specified coordinates on the screen
Args:
    x (float): X coordinate (can be absolute or relative 0-1)
    y (float): Y coordinate (can be absolute or relative 0-1)
Returns:
    str: Success or error message
long_clickB
Long click at the specified coordinates on the screen
Args:
    x (float): X coordinate (can be absolute or relative 0-1)
    y (float): Y coordinate (can be absolute or relative 0-1)
Returns:
    str: Success or error message
swipeB
Swipe from one point to another on the screen
Args:
    x1 (float): Start X coordinate (can be absolute or relative 0-1)
    y1 (float): Start Y coordinate (can be absolute or relative 0-1)
    x2 (float): End X coordinate (can be absolute or relative 0-1)
    y2 (float): End Y coordinate (can be absolute or relative 0-1)
    duration (int): Duration of the swipe in milliseconds (default: 500)
Returns:
    str: Success or error message
input_textC
Input text on the device
Args:
    text (str): Text to input
Returns:
    str: Success or error message
press_keyB
Press a key on the device
Args:
    key_code (int): Key code to press (e.g., 3 for HOME, 4 for BACK)
Returns:
    str: Success or error message
start_appB
Start an application by package name
Args:
    package_name (str): Package name of the application to start
Returns:
    str: Success or error message
stop_appA
Stop an application by package name
Args:
    package_name (str): Package name of the application to stop
Returns:
    str: Success or error message
get_device_infoC
Get detailed information about the device
Returns:
    str: Device information as a formatted string
get_screen_infoB
Get information about the screen (dimensions, rotation)
Returns:
    str: Screen information as a formatted string
get_contactsB
Get all contacts or a specific contact by phone number
Args:
    number (str): Phone number to search for, or "*" to get all contacts (default)
Returns:
    str: Contact information as JSON
delete_contactA
Delete a contact or all contacts
Warning: Use with caution, especially when deleting all contacts
Args:
    number (str): Phone number of contact to delete, or "*" to delete all contacts (default)
Returns:
    str: Success or error message
insert_contactB
Insert a new contact
Args:
    name (str): Contact name
    number (str): Contact phone number
Returns:
    str: Success or error message
get_smsB
Get all SMS messages or messages from a specific number
Args:
    number (str): Phone number to get SMS from, or "*" to get all SMS (default)
Returns:
    str: SMS messages as JSON
send_smsC
Send an SMS message
Args:
    phone_number (str): Recipient phone number
    message (str): Message content
Returns:
    str: Success or error message
list_filesB
List files in a directory
Args:
    path (str): Directory path to list (e.g., "/sdcard")
Returns:
    str: File list as JSON
delete_fileA
Delete a file or directory
Warning: This will delete the file/directory and all its contents
Args:
    path (str): File or directory path to delete
Returns:
    str: Success or error message
get_file_urlC
Get the download URL for a file
Args:
    path (str): File path to download
Returns:
    str: Download URL or error message
set_clipboard_textC
Set clipboard text
Args:
    text (str): Text to set in clipboard
Returns:
    str: Success or error message
get_clipboard_textB
Get clipboard text
Returns:
    str: Clipboard content or error message
input_charA
Input ASCII characters using key simulation
Use this when input_text doesn't work in certain situations
Args:
    text (str): ASCII text to input
Returns:
    str: Success or error message
clear_textB
Clear text in the current input field
Returns:
    str: Success or error message
pressA
Long press at specified coordinates for a specific duration
Args:
    x (float): X coordinate (can be absolute or relative 0-1)
    y (float): Y coordinate (can be absolute or relative 0-1)
    duration (int): Duration of press in milliseconds (default: 1000)
Returns:
    str: Success or error message
gestureB
Execute a single-finger gesture
Args:
    duration (int): Duration of gesture in milliseconds
    points (list): List of points [{"x": 100, "y": 200}, {"x": 150, "y": 250}, ...]
Returns:
    str: Success or error message
gesturesB
Execute multi-finger gestures
Args:
    gestures_data (list): List of gesture objects, each with:
        - delay (int): Delay before starting this gesture
        - duration (int): Duration of gesture in milliseconds
        - points (list): List of points for the gesture
Returns:
    str: Success or error message
call_phoneC
Make a phone call (SIM card 1 only)
Args:
    number (str): Phone number to call
Returns:
    str: Success or error message
end_callB
End the current phone call
Returns:
    str: Success or error message
turn_screen_offA
Turn off the screen (device remains active for control/casting)
Returns:
    str: Success or error message
turn_screen_onB
Turn on the screen
Returns:
    str: Success or error message
start_screen_recordingB
Start screen recording
Args:
    limit (int): Maximum recording duration in seconds (default: 180)
Returns:
    str: Success or error message
stop_screen_recordingC
Stop screen recording
Returns:
    str: Success or error message
play_musicB
Play music from a URL
Warning: This may fail on Android 10 and below
Args:
    url (str): URL of the audio file to play
Returns:
    str: Success or error message
stop_musicA
Stop playing music
Returns:
    str: Success or error message
execute_scriptB
Execute an AutoX.js script
Args:
    script (str): Script content to execute (optional)
    path (str): Local script path on device (optional, takes priority over script)
    delay (int): Delay before execution in milliseconds (default: 0)
    interval (int): Interval between loop iterations in milliseconds (default: 0)
    loop_times (int): Number of times to loop (default: 1, 0 for infinite)
Returns:
    str: Success or error message
stop_all_scriptsB
Stop all running AutoX.js scripts
Returns:
    str: Success or error message
set_device_nameA
Set a display name for the device
Note: This doesn't change the system device name, only the AutoBot display name
Args:
    name (str): Display name for the device
Returns:
    str: Success or error message
get_device_nameB
Get the display name of the device
Returns:
    str: Device display name or error message
get_top_activityC
Get information about the current top activity
Returns:
    str: Top activity information as JSON
clear_app_dataA
Clear application data for a package
Warning: This will delete all app data and cannot be undone
Args:
    package_name (str): Package name of the app
Returns:
    str: Success or error message
get_screen_rotationA
Get the screen rotation
Returns:
    str: Screen rotation as JSON (0=portrait, 1=landscape-90, 2=inverted, 3=landscape-270)
get_screen_xmlB
Get screen layout in XML format
Args:
    is_wait (bool): Whether to wait for layout (default: true)
Returns:
    str: Screen layout as XML
get_device_idC
Get the device ID
Returns:
    str: Device ID
get_device_ipB
Get all IP addresses of the device
Returns:
    str: IP addresses as JSON
get_versionA
Get the AutoBot version number
Returns:
    str: Version number
helloA
Test connection to AutoBot server
Returns:
    str: Server response
turn_safe_mode_onB
Turn on safe mode
In safe mode, AutoBot cannot access screen layout (JSON/XML) or receive notifications
Returns:
    str: Success or error message
turn_safe_mode_offB
Turn off safe mode
Returns:
    str: Success or error message
is_safe_modeA
Check if safe mode is enabled
Returns:
    str: Safe mode status (1=enabled, 0=disabled)
exit_serviceA
Exit the AutoBot service
Warning: This will terminate the AutoBot server
Returns:
    str: Success or error message

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/yz0903/autobot-mcp'

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