screenshot
Capture the active app or web session as an image, with optional scope, density, size, and annotation settings.
Instructions
Capture a screenshot of the active app or web session. Choose the capture scope, density, size, or annotations through the corresponding input fields when needed. Times out after 90s.
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 |
|---|---|---|---|
| path | No | Output path. | |
| udid | No | Apple device or simulator UDID; the selector that pins one device when several share a name. | |
| debug | No | Enable debug diagnostics. | |
| runId | No | Lease run identifier. | |
| scale | No | Screenshot scale factor. | |
| cropOn | No | Selector expression; the capture is cropped to the frame the selector resolves on the same screen. | |
| device | No | Device name selector (a UDID belongs in udid, a serial in serial). | |
| serial | No | Android, HarmonyOS, or Vega VVD serial selector. | |
| target | No | Alias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element. | |
| tenant | No | Remote tenant identifier. | |
| leaseId | No | Existing lease identifier. | |
| session | No | Agent-device session name. | |
| surface | No | ||
| noRecord | No | Do not record this action. | |
| platform | No | Platform selector used to resolve a device. | |
| stabilize | No | ||
| fullscreen | No | ||
| screenMask | No | Fill the iOS simulator screen outline with black for this capture. Requires simctl; omit for the default image. | |
| includeCost | No | Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged. | |
| overlayRefs | No | ||
| deviceTarget | No | Device target form. Maps to the CLI --target flag. | |
| pixelDensity | No | Output screenshot pixel density in pixels per logical point. | |
| responseLevel | No | Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged. | |
| mcpOutputFormat | No | MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately. | |
| normalizeStatusBar | No | ||
| androidDeviceAllowlist | No | Android serial allowlist used for device resolution. |