screenshot
Capture the current device or app-window image to inspect UI state and derive fractional positions for taps and swipes.
Instructions
Take a screenshot of the device (on "mac": of the app's window). Positions for tap and swipe are fractions of this image.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there) | |
| device | Yes | Device id (or exact name) from the devices tool | |
| maxSize | No | Scale the image down so its long edge is at most this many pixels. Default 1280; 0 keeps the full resolution |