Skip to main content
Glama

set_animation_scale

Adjust Android device animation speed for UI testing by setting scale values (0=off, 1=normal, 0.5=fast) to control visual transitions during development workflows.

Instructions

Set animation scale (0 = off, 1 = normal, 0.5 = fast). Useful for speeding up UI tests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNo
device_serialNo

Implementation Reference

  • The main handler function for the 'set_animation_scale' tool. It sets the window, transition, and animator animation scales on the Android device using ADB shell settings commands. The @mcp.tool() decorator registers it as an MCP tool.
    @mcp.tool() def set_animation_scale(scale: float = 1.0, device_serial: str | None = None) -> str: """ Set animation scale (0 = off, 1 = normal, 0.5 = fast). Useful for speeding up UI tests. """ scale_str = str(scale) run_adb(["shell", "settings", "put", "global", "window_animation_scale", scale_str], device_serial) run_adb(["shell", "settings", "put", "global", "transition_animation_scale", scale_str], device_serial) run_adb(["shell", "settings", "put", "global", "animator_duration_scale", scale_str], device_serial) return f"Animation scale set to {scale}"

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