Screenshot an app window
ui_screenshotCapture an app's main window or the full screen as an image—even when the app is behind other windows—to visually verify UI states and results.
Instructions
Capture an app's main window (or, without app, the whole screen) as an image. Works while the app is behind other windows, but not while it's hidden, and the apps these tools drive stay hidden: for them, check results through output files or read-back tools instead. Needs Screen Recording permission for the app running this server.
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": "ui_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path | |
| maxSize | No | Longest side in pixels |