take_ios_screenshot_tool
Take a screenshot of an iOS device and save it as a PNG image file using Appium. Specify device name, bundle ID, and output path.
Instructions
截取 iOS 设备屏幕并保存为图片文件
Args:
platform_name: 平台名称,默认为 iOS
automation_name: 自动化框架名称,默认为 XCUITest
device_name: 设备名称,默认为 iPhone 16 Pro Max
udid: 设备唯一标识符
bundle_id: 应用 Bundle ID
appium_server_url: Appium 服务器地址
output_path: 截图保存路径
Returns:
截图文件的完整路径
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | 32EFED52-E30A-4CC8-AAE9-525B5A3A5B6A | |
| bundle_id | No | com.xue.Demo01 | |
| device_name | No | iPhone 16 Pro Max | |
| output_path | No | screen.png | |
| platform_name | No | iOS | |
| automation_name | No | XCUITest | |
| appium_server_url | No | http://127.0.0.1:4723 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |