appium_mobile_file
Transfer files to or from mobile devices using Appium extensions. Push uploads base64-encoded content to a device path; pull downloads a remote file and returns its base64 data.
Instructions
Push or pull a file using Appium mobile extensions. action=push uses payloadBase64, action=pull returns contentBase64.
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": {
"action": "<action>",
"remotePath": "<remotePath>"
},
"name": "appium_mobile_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | push uploads a file to device; pull downloads from device. | |
| sessionId | No | Session ID; defaults to 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. |