appium_mobile_file
Push or pull files on mobile devices using Appium extensions. Upload a file with base64 payload, or download a remote file to get its base64 content.
Instructions
Push or pull a file using Appium mobile extensions. action=push uses payloadBase64, action=pull returns contentBase64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | push uploads a file to device; pull downloads from device. | |
| sessionId | No | Session ID to target. If omitted, uses the active session. | |
| remotePath | Yes | Path to the file on the device. Android (UiAutomator2): use an absolute path (e.g. /data/local/tmp/foo.txt or /sdcard/Download/foo.txt). iOS (XCUITest): use the formats described in the Appium XCUITest file transfer guide (e.g. @com.example.app:documents/file.txt or simulator-relative paths). | |
| payloadBase64 | No | Required when action=push. Ignored when action=pull. |