take_simulator_screenshot
Capture a screenshot from a booted iOS simulator. Optionally provide the simulator's UDID to target a specific device.
Instructions
Take a screenshot of a booted iOS simulator.
Args:
udid: Optional UDID (device identifier) of the simulator to screenshot.
If not provided or empty, the first booted simulator found is used.
A list of running simulators can be found with list_booted_simulators.
Returns: The file path to the saved screenshot.
Raises: XCodeMCPError: If no booted simulators found or screenshot fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |