autopilot_screenshot
Builds and runs an iOS app in a simulator, then captures a screenshot for visual UI inspection and saves it to the project.
Instructions
Build the app, run it in an iOS simulator, and capture a screenshot. Returns the screenshot as an image so Claude can visually inspect the UI. Also saves the PNG to /.xap/screenshots/ and opens it in macOS Preview.
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": {
"project_path": "<project_path>",
"scheme": "<scheme>",
"bundle_id": "<bundle_id>"
},
"name": "autopilot_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes | Build scheme name | |
| bundle_id | Yes | App bundle identifier (e.g. com.example.MyApp) | |
| os_version | No | ||
| device_name | No | iPhone 16 | |
| open_preview | No | ||
| project_path | Yes | Absolute path to .xcodeproj or .xcworkspace | |
| configuration | No | Debug | |
| launch_wait_seconds | No |