Skip to main content
Glama

toggle_show_layout_bounds

Enable or disable layout bounds display on Android devices to debug UI element positioning and sizing during development.

Instructions

Show layout bounds for all views - great for debugging layouts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enableYes
device_serialNo

Implementation Reference

  • Handler function that toggles layout bounds visibility by setting the debug.layout property using ADB shell setprop. Registered as an MCP tool via @mcp.tool() decorator.
    @mcp.tool() def toggle_show_layout_bounds(enable: bool, device_serial: str | None = None) -> str: """Show layout bounds for all views - great for debugging layouts""" value = "true" if enable else "false" return run_adb([ "shell", "setprop", "debug.layout", value ], 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