capture_screen
Captures a screenshot of the Android or iOS Simulator screen and lists visible elements with AutomationId, text and bounds, so you can compare a mobile app screen against its Figma design.
Instructions
Takes a screenshot of the device (Android or iOS Simulator) and lists the visible elements with their AutomationId (resource-id on Android, accessibilityIdentifier on iOS), text and bounds in dp or pt. On iOS it takes a few more seconds: it reads the accessibility tree with a UI test, which is built the first time.
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": "capture_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceSerial | No | Device serial or UDID (from list_devices). Optional: uses the first one. |