Inspect Layout
inspect_layoutRetrieve the full computed layout of the current Android screen with every node's bounds. Optionally filter to interactive-only nodes for touch target analysis.
Instructions
Full computed layout of the current screen: every node with its bounds.
The Android counterpart of reading getBoundingClientRect() on a web page.
Set interactive_only to get just the touchable nodes.
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": "inspect_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| xml_path | No | ||
| max_nodes | No | ||
| interactive_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||