get_screen_state
Capture the current Android or iOS screen as a filtered UI tree, screenshot, or both in one call to inspect elements and verify app state.
Instructions
Get the current screen state: UI tree and/or screenshot in a single call. UI tree is filtered to relevant elements by default.
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_screen_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | What to capture. Default: both | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| filter_ui | No | Filter UI tree to relevant elements only (with text or clickable). Default: true | |
| force_full | No | Return the tree even when it is identical to the last read. Default: false | |
| max_elements | No | Maximum elements to return; the rest is summarized. Default: 120 |