Screenshot
screenshotCapture the current device or emulator screen as an image. Optionally annotate UI elements with numbered bounding boxes, including text in images or WebViews.
Instructions
Take a screenshot of the device/emulator screen and return it as an image. With annotate: true (needs the Google android CLI), UI elements get numbered bounding boxes — including text inside images/WebViews that snapshot_ui cannot see.
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": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (defaults to session or the only device) | |
| annotate | No | Draw labeled bounding boxes around UI elements (vision-based) |