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.
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": "take_simulator_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |