screenshot_capture
Screen, windows & UI · macOS
Effect: write (strongest supported action). Status: gated.
Gated means the tool requires an installed app, a connected account, permission, or runtime availability. Check those requirements on the listed platform before using it.
macOS
Purpose
Captures a single frame of a display, window, or region to a PNG. Returns {path, resolution (PIXELS), scale_factor, display_id} — scale_factor is the backing scale of the display that was ACTUALLY captured (the same value list_displays reports for that display_id, by construction: both read one function), so pixels = points x scale_factor when converting a coordinate from the image to ui_click. If the display could not be determined you get scale_factor_unknown instead of a guess; resolution is always there, so you can derive the ratio yourself. Requires Screen Recording permission; without it returns an explicit permission_required, never a blank image.
Required inputs
target
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — macOS
{
"properties": {
"output_path": {
"description": "Where to write the PNG (default: temp file). Missing parent folders are created.",
"type": "string"
},
"target": {
"properties": {
"display_id": {
"type": "string"
},
"kind": {
"enum": [
"display",
"window",
"region"
],
"type": "string"
},
"region": {
"description": "{x,y,w,h} global points.",
"type": "object"
},
"window_id": {
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"required": [
"target"
],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"target": {
"display_id": "1",
"kind": "display"
}
}