IOSTools
IOSTools.__init__
url
- iOS device URL. This is the URL of the iOS device. It is used to send requests to the iOS device.bundle_identifiers
- List of bundle identifiers to include in the list of packages
IOSTools.get_state
IOSTools.tap_by_index
index
- Index of the element to tap
IOSTools.tap
index
- Index of the element to tap
IOSTools.swipe
start_x
- Starting X coordinatestart_y
- Starting Y coordinateend_x
- Ending X coordinateend_y
- Ending Y coordinateduration_ms
- Duration of swipe in milliseconds (not used in iOS API)
IOSTools.drag
start_x
- Starting X coordinatestart_y
- Starting Y coordinateend_x
- Ending X coordinateend_y
- Ending Y coordinateduration_ms
- Duration of swipe in milliseconds
IOSTools.input_text
text
- Text to input. Can contain spaces, newlines, and special characters including non-ASCII.
IOSTools.back
IOSTools.press_key
- 0: HOME
- 4: ACTION
- 5: CAMERA
keycode
- iOS keycode to press
IOSTools.start_app
package
- Bundle identifier (e.g., “com.apple.MobileSMS”)activity
- Optional activity name (not used on iOS)
IOSTools.take_screenshot
IOSTools.list_packages
IOSTools.remember
information
- The information to remember
IOSTools.get_memory
IOSTools.complete
success
- Indicates if the task was successful.reason
- Reason for failure/success