Skip to main content
Glama

toggle_talkback

Control Android accessibility by enabling or disabling TalkBack service for testing and development workflows.

Instructions

Enable or disable TalkBack accessibility service

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enableYes
device_serialNo

Implementation Reference

  • Handler function for toggle_talkback tool. Decorated with @mcp.tool() which also serves as registration. Enables/disables TalkBack by modifying the enabled_accessibility_services setting via ADB.
    @mcp.tool() def toggle_talkback(enable: bool, device_serial: str | None = None) -> str: """Enable or disable TalkBack accessibility service""" service = "com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService" if enable: return run_adb([ "shell", "settings", "put", "secure", "enabled_accessibility_services", service ], device_serial) else: return run_adb([ "shell", "settings", "put", "secure", "enabled_accessibility_services", "" ], device_serial)

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