Capture a simulator screenshot
screenshotCapture a simulator screenshot to a PNG file for visual review and before/after comparison.
Instructions
Capture a simulator screenshot to a PNG path using xcrun simctl io screenshot. Use as evidence for visual review and before/after comparison.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"udid": "<udid>",
"outputPath": "<outputPath>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Simulator UDID. Use simulator_list first when unsure. | |
| outputPath | Yes | Output PNG path. | |
| includeImage | No |