get_accessibility_info
Retrieve accessibility service details for Android devices to support accessibility testing workflows.
Instructions
Get accessibility service information - useful for a11y testing
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_accessibility_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/adb_mcp_server/server.py:1050-1053 (handler)The main handler function for the 'get_accessibility_info' tool. It is decorated with @mcp.tool() for registration and executes 'adb shell dumpsys accessibility' via the run_adb helper to retrieve accessibility service information.
@mcp.tool() def get_accessibility_info(device_serial: str | None = None) -> str: """Get accessibility service information - useful for a11y testing""" return run_adb(["shell", "dumpsys", "accessibility"], device_serial)