screenshot
Capture the current display of an iOS Simulator and save it as an image file, with options for image format, display selection, and mask handling.
Instructions
Takes a screenshot of the iOS Simulator
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | For non-rectangular displays, handle the mask by policy (ignored, alpha, or black) | |
| type | No | Image format (png, tiff, bmp, gif, or jpeg). Default is png. | |
| udid | No | Udid of target, can also be set with the IDB_UDID env var | |
| display | No | Display to capture (internal or external). Default depends on device type. | |
| output_path | Yes | File path where the screenshot will be saved. If relative, it uses the directory specified by the `IOS_SIMULATOR_MCP_DEFAULT_OUTPUT_DIR` env var, or `~/Downloads` if not set. |