Screenshot
screenshotCaptures a peer's display and returns a scaled image whose coordinates map directly to click and move actions, optionally limited to a region for sharper small text.
Instructions
Take a screenshot of the peer's display and return the image (scaled so the long edge is at most 1280 px). Coordinates you read off this image can be passed straight to click / move.
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": {
"peer": "<peer>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | The peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly | |
| region | No | Optional x,y,w,h in screen pixels to capture just a part (sharper for small text) | |
| display | No | Display index or name from `info` (default: the main display) |