capture
Takes screenshots of the full screen, a monitor, a selected region, the active app, or a specific window and returns the image; covered windows can be included.
Instructions
Screenshot: full, monitor, region, active or window (PrintWindow, works while covered). Returns the image. Capturing a minimized window restores it, so it needs bring_to_front after the user agreed.
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": {
"mode": "<mode>"
},
"name": "capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | region height | |
| w | No | region width | |
| x | No | region left | |
| y | No | region top | |
| mode | Yes | ||
| title | No | part of the window title (case-insensitive; an exact title wins) or a handle from list_windows (0x...) | |
| monitor | No | monitor index for mode=monitor | |
| bring_to_front | No | restore and activate the window first (takes the user's focus) |