get_screenshot
Capture screenshots from iOS Simulator, save to a specified directory, and resize images to a defined width for efficient storage and usage.
Instructions
Capture a screenshot from iOS Simulator
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| device_id | No | Specify a simulator device (if not specified, the booted device will be used) | |
| max_width | No | Maximum width for resizing (pixels) | |
| output_directory_name | No | Subdirectory name for screenshots (if not specified, .screenshots will be used) | .screenshots | 
| output_filename | No | Output filename (if not specified, timestamp.png will be used) | |
| resize | No | Whether to resize the image to approximately VGA size | 
Input Schema (JSON Schema)
{
  "properties": {
    "device_id": {
      "description": "Specify a simulator device (if not specified, the booted device will be used)",
      "type": "string"
    },
    "max_width": {
      "default": 640,
      "description": "Maximum width for resizing (pixels)",
      "type": "integer"
    },
    "output_directory_name": {
      "default": ".screenshots",
      "description": "Subdirectory name for screenshots (if not specified, .screenshots will be used)",
      "type": "string"
    },
    "output_filename": {
      "description": "Output filename (if not specified, timestamp.png will be used)",
      "type": "string"
    },
    "resize": {
      "default": true,
      "description": "Whether to resize the image to approximately VGA size",
      "type": "boolean"
    }
  },
  "required": [],
  "type": "object"
}